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.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52512.json"
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52512.json"
[
{
"signature_type": "Line",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6c18c386fd13dbb3ff31a1086dabb526780d9bda",
"digest": {
"line_hashes": [
"235384138928024186130512454296788723778",
"25494042078023586319659365475877133338",
"197508753142978403388969825743645082168",
"21286410273131301113053554013643054111",
"334882393994536931835462169860794989399",
"333992804279317278351588033662938208717",
"149428759176763146175642099709997093717",
"38383596056417986017301590484025210518"
],
"threshold": 0.9
},
"id": "CVE-2023-52512-6905646d",
"deprecated": false,
"target": {
"file": "drivers/pinctrl/nuvoton/pinctrl-wpcm450.c"
}
},
{
"signature_type": "Function",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6c18c386fd13dbb3ff31a1086dabb526780d9bda",
"digest": {
"function_hash": "10722617729342679024659900245384387547",
"length": 2092.0
},
"id": "CVE-2023-52512-8fa4bc77",
"deprecated": false,
"target": {
"file": "drivers/pinctrl/nuvoton/pinctrl-wpcm450.c",
"function": "wpcm450_gpio_register"
}
}
]