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",
"deprecated": false,
"digest": {
"threshold": 0.9,
"line_hashes": [
"235384138928024186130512454296788723778",
"25494042078023586319659365475877133338",
"197508753142978403388969825743645082168",
"21286410273131301113053554013643054111",
"334882393994536931835462169860794989399",
"333992804279317278351588033662938208717",
"149428759176763146175642099709997093717",
"38383596056417986017301590484025210518"
]
},
"target": {
"file": "drivers/pinctrl/nuvoton/pinctrl-wpcm450.c"
},
"id": "CVE-2023-52512-44813dca",
"signature_version": "v1",
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c9d7cac0fd27c74dd368e80dc4b5d0f9f2e13cf8",
"deprecated": false,
"digest": {
"threshold": 0.9,
"line_hashes": [
"235384138928024186130512454296788723778",
"25494042078023586319659365475877133338",
"197508753142978403388969825743645082168",
"21286410273131301113053554013643054111",
"334882393994536931835462169860794989399",
"333992804279317278351588033662938208717",
"149428759176763146175642099709997093717",
"38383596056417986017301590484025210518"
]
},
"target": {
"file": "drivers/pinctrl/nuvoton/pinctrl-wpcm450.c"
},
"id": "CVE-2023-52512-65fdef5a",
"signature_version": "v1",
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6c18c386fd13dbb3ff31a1086dabb526780d9bda",
"deprecated": false,
"digest": {
"threshold": 0.9,
"line_hashes": [
"235384138928024186130512454296788723778",
"25494042078023586319659365475877133338",
"197508753142978403388969825743645082168",
"21286410273131301113053554013643054111",
"334882393994536931835462169860794989399",
"333992804279317278351588033662938208717",
"149428759176763146175642099709997093717",
"38383596056417986017301590484025210518"
]
},
"target": {
"file": "drivers/pinctrl/nuvoton/pinctrl-wpcm450.c"
},
"id": "CVE-2023-52512-6905646d",
"signature_version": "v1",
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c9d7cac0fd27c74dd368e80dc4b5d0f9f2e13cf8",
"deprecated": false,
"digest": {
"function_hash": "26155798893060081317622706020856412594",
"length": 2069.0
},
"target": {
"function": "wpcm450_gpio_register",
"file": "drivers/pinctrl/nuvoton/pinctrl-wpcm450.c"
},
"id": "CVE-2023-52512-6ab55a11",
"signature_version": "v1",
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6c18c386fd13dbb3ff31a1086dabb526780d9bda",
"deprecated": false,
"digest": {
"function_hash": "10722617729342679024659900245384387547",
"length": 2092.0
},
"target": {
"function": "wpcm450_gpio_register",
"file": "drivers/pinctrl/nuvoton/pinctrl-wpcm450.c"
},
"id": "CVE-2023-52512-8fa4bc77",
"signature_version": "v1",
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@87d315a34133edcb29c4cadbf196ec6c30dfd47b",
"deprecated": false,
"digest": {
"function_hash": "26155798893060081317622706020856412594",
"length": 2069.0
},
"target": {
"function": "wpcm450_gpio_register",
"file": "drivers/pinctrl/nuvoton/pinctrl-wpcm450.c"
},
"id": "CVE-2023-52512-b6eed26e",
"signature_version": "v1",
"signature_type": "Function"
}
]