CVE-2024-47141: pinmux: Use sequential access to access desc->pinmux data
In the Linux kernel, the following vulnerability has been resolved:
pinmux: Use sequential access to access desc->pinmux data
When two client of the same gpio call pinctrlselectstate() for the same functionality, we are seeing NULL pointer issue while accessing desc->muxowner.
Let's say two processes A, B executing in pinrequest() for the same pin and process A updates the desc->muxusecount but not yet updated the desc->muxowner while process B see the desc->muxusecount which got updated by A path and further executes strcmp and while accessing desc->muxowner it crashes with NULL pointer.
Serialize the access to mux related setting with a mutex lock.
cpu0 (process A) cpu1(process B)
pinctrlselectstate() { pinctrlselectstate() { pinrequest() { pinrequest() { ... .... } else { desc->muxusecount++; desc->muxusecount && strcmp(desc->muxowner, owner)) {
if (desc->muxusecount > 1) return 0; desc->muxowner = owner;
} }
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.27-1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 6.6.76.1-1
Event History
Frequently Asked Questions
What is the severity of CVE-2024-47141?
CVE-2024-47141 is a vulnerability in the Linux kernel that allows for a NULL pointer dereference when two clients access the same GPIO, potentially leading to system instability.
How do I fix CVE-2024-47141?
To fix CVE-2024-47141, update your Linux kernel to a version that includes the patch addressing this vulnerability.
Which versions of the Linux kernel are affected by CVE-2024-47141?
CVE-2024-47141 affects Linux kernel versions prior to 6.6.66 and those between 6.7 and 6.12.5.
What components are impacted by CVE-2024-47141?
CVE-2024-47141 specifically impacts the pinmux functionality within the Linux kernel's GPIO handling.
Is CVE-2024-47141 exploitative in nature?
While CVE-2024-47141 is technically a NULL pointer dereference, it can potentially lead to denial of service if exploited.