In the Linux kernel, the following vulnerability has been resolved:
pinctrl: nuvoton: wpcm450: fix out of bounds write
Write into 'pctrl->gpio_bank' happens before the check for GPIO index validity, so out of bounds write may happen.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
[ { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@87d315a34133edcb29c4cadbf196ec6c30dfd47b", "target": { "file": "drivers/pinctrl/nuvoton/pinctrl-wpcm450.c" }, "signature_version": "v1", "deprecated": false, "id": "CVE-2023-52512-44813dca", "signature_type": "Line", "digest": { "line_hashes": [ "235384138928024186130512454296788723778", "25494042078023586319659365475877133338", "197508753142978403388969825743645082168", "21286410273131301113053554013643054111", "334882393994536931835462169860794989399", "333992804279317278351588033662938208717", "149428759176763146175642099709997093717", "38383596056417986017301590484025210518" ], "threshold": 0.9 } }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c9d7cac0fd27c74dd368e80dc4b5d0f9f2e13cf8", "target": { "file": "drivers/pinctrl/nuvoton/pinctrl-wpcm450.c" }, "signature_version": "v1", "deprecated": false, "id": "CVE-2023-52512-65fdef5a", "signature_type": "Line", "digest": { "line_hashes": [ "235384138928024186130512454296788723778", "25494042078023586319659365475877133338", "197508753142978403388969825743645082168", "21286410273131301113053554013643054111", "334882393994536931835462169860794989399", "333992804279317278351588033662938208717", "149428759176763146175642099709997093717", "38383596056417986017301590484025210518" ], "threshold": 0.9 } }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6c18c386fd13dbb3ff31a1086dabb526780d9bda", "target": { "file": "drivers/pinctrl/nuvoton/pinctrl-wpcm450.c" }, "signature_version": "v1", "deprecated": false, "id": "CVE-2023-52512-6905646d", "signature_type": "Line", "digest": { "line_hashes": [ "235384138928024186130512454296788723778", "25494042078023586319659365475877133338", "197508753142978403388969825743645082168", "21286410273131301113053554013643054111", "334882393994536931835462169860794989399", "333992804279317278351588033662938208717", "149428759176763146175642099709997093717", "38383596056417986017301590484025210518" ], "threshold": 0.9 } }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c9d7cac0fd27c74dd368e80dc4b5d0f9f2e13cf8", "target": { "function": "wpcm450_gpio_register", "file": "drivers/pinctrl/nuvoton/pinctrl-wpcm450.c" }, "signature_version": "v1", "deprecated": false, "id": "CVE-2023-52512-6ab55a11", "signature_type": "Function", "digest": { "function_hash": "26155798893060081317622706020856412594", "length": 2069.0 } }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6c18c386fd13dbb3ff31a1086dabb526780d9bda", "target": { "function": "wpcm450_gpio_register", "file": "drivers/pinctrl/nuvoton/pinctrl-wpcm450.c" }, "signature_version": "v1", "deprecated": false, "id": "CVE-2023-52512-8fa4bc77", "signature_type": "Function", "digest": { "function_hash": "10722617729342679024659900245384387547", "length": 2092.0 } }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@87d315a34133edcb29c4cadbf196ec6c30dfd47b", "target": { "function": "wpcm450_gpio_register", "file": "drivers/pinctrl/nuvoton/pinctrl-wpcm450.c" }, "signature_version": "v1", "deprecated": false, "id": "CVE-2023-52512-b6eed26e", "signature_type": "Function", "digest": { "function_hash": "26155798893060081317622706020856412594", "length": 2069.0 } } ]