CVE-2023-52512 pinctrl: nuvoton: wpcm450: fix out of bounds write
An out-of-bounds write in the Nuvoton WPCM450 pinctrl driver allows attackers to corrupt memory, potentially leading to code execution or privilege escalation.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-52512?
CVE-2023-52512 is a medium-severity memory corruption vulnerability in Linux kernel, published on 2 Mar 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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.
Weakness: CWE-787
Which versions are affected by CVE-2023-52512?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2023-52512?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2023-52512 being exploited?
There is no known exploitation of CVE-2023-52512 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2023-52512, DEBIAN-CVE-2023-52512, GHSA-8j2x-98w6-cr3m, UBUNTU-CVE-2023-52512.