CVE-2024-38541
of: module: add buffer overflow check in of_modalias()
CVE-2024-38541 is a buffer overflow in Linux Kernel (CVSS 7.8, High).
No known exploitation. EPSS puts it in the 61st percentile. Fixed versions are out.
No public exploit knownFix5 products4 fixed builds listed below
e.g. OID 1.3.6.1.4.1.25623.1.0.171238
What to do
Find your product and version, then upgrade to the build on the right.
- LinuxAffected: ≥ bc575064d688c8933a6ca51429bea9bc63628d3b, < 46795440ef2b4ac919d09310a69a404c5bc90a88Upgrade to: 46795440ef2b4ac919d09310a69a404c5bc90a88Affected: ≥ bc575064d688c8933a6ca51429bea9bc63628d3b, < 733e62786bdf1b2b9dbb09ba2246313306503414Upgrade to: 733e62786bdf1b2b9dbb09ba2246313306503414Affected: ≥ bc575064d688c8933a6ca51429bea9bc63628d3b, < c7f24b7d94549ff4623e8f41ea4d9f5319bd8ac8Upgrade to: c7f24b7d94549ff4623e8f41ea4d9f5319bd8ac8Affected: ≥ bc575064d688c8933a6ca51429bea9bc63628d3b, < 5d59fd637a8af42b211a92b2edb2474325b4d488Upgrade to: 5d59fd637a8af42b211a92b2edb2474325b4d488 + 4 more branchesStated by: CVE record
- Red Hat Inc. Red Hat Enterprise LinuxAffected: 8Upgrade to: not statedStated by: BDU
- RusBITech-Astra Astra Linux Special Edition dlya ElbrusAffected: 8.1 «Leningrad»Upgrade to: not statedStated by: BDU
- Open-source community Debian GNU/LinuxAffected: 11Upgrade to: not statedStated by: BDU
- Innovatsionnye Tekhnologii v Biznese EMIAS OSAffected: 1.0Upgrade to: not statedStated by: BDU
Versions as the sources state them. 5 more products have version data. Full version matrix after sign-in
What it is
From the CVE record
In the Linux kernel, the following vulnerability has been resolved: of: module: add buffer overflow check in of_modalias() In of_modalias(), if the buffer happens to be too small even for the 1st snprintf() call, the len parameter will become negative and str parameter (if not NULL initially) will point beyond the buffer's end. Add the buffer overflow check after the 1st snprintf() call and fix such check after the strlen() call (accounting for the terminating NUL char).
In plain language
No plain-language summary for this CVE yet.
Exploitation
Where each signal puts this CVE on the scale from published to confirmed exploited.
- CISA KEV
Not in the catalog. CISA has not confirmed exploitation.
- Public exploits
No public exploit or proof of concept found in the sources we track.
- EPSS
0.9% chance of exploitation activity in the next 30 days, which ranks it in the 61st percentile of scored CVEs.
Exploit Prediction Scoring System, FIRST.org. A probability, not a confirmation.
Lifecycle
8 events over 776 days, from the signal feeds we watch.
- Patch availablerecord updated
- OpenVAS check added
- Patch availablerecord updated
- Publishedweakness classified, att&ck mapped
Affected products
And 4 more affected products. See all after sign-in
Technical detail
CVSS 3.1 vector
Open in the CVSS calculatorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scored 7.8 by NVD.
How it is reached
- Attack Vector LocalRequires local access to the vulnerable system (e.g. local login, malicious file)
- Attack Complexity LowNo special conditions — the attack can be reliably reproduced
- Privileges Required LowRequires basic user-level privileges
- User Interaction NoneNo user interaction needed — fully automated exploitation
Scope
- Scope UnchangedImpact is limited to the vulnerable component itself
Impact if exploited
- Confidentiality HighTotal information disclosure — all data in the component is compromised
- Integrity HighTotal loss of integrity — attacker can modify any data in the component
- Availability HighTotal denial of service — the component is completely unavailable
Weaknesses
ATT&CK techniques
Mapped from the weaknesses above (CWE to ATT&CK), not observed in attacks.
- Initial AccessT1190Exploit Public-Facing Applicationhigh confidence
- Privilege EscalationT1068Exploitation for Privilege Escalationhigh confidence
Sources
Questions about CVE-2024-38541
- Is CVE-2024-38541 being exploited?
- No exploitation is confirmed and no public exploit is known. EPSS puts the chance of exploitation in the next 30 days at 0.9%.
- Which versions are affected by CVE-2024-38541?
- Linux: ≥ bc575064d688c8933a6ca51429bea9bc63628d3b, < 46795440ef2b4ac919d09310a69a404c5bc90a88; ≥ bc575064d688c8933a6ca51429bea9bc63628d3b, < 733e62786bdf1b2b9dbb09ba2246313306503414; ≥ bc575064d688c8933a6ca51429bea9bc63628d3b, < c7f24b7d94549ff4623e8f41ea4d9f5319bd8ac8. Red Hat Enterprise Linux: 8. Astra Linux Special Edition dlya Elbrus: 8.1 «Leningrad». 7 more products are listed in the record.
- How do I fix or mitigate CVE-2024-38541?
- Upgrade to a fixed build for your product branch: 46795440ef2b4ac919d09310a69a404c5bc90a88, 733e62786bdf1b2b9dbb09ba2246313306503414, c7f24b7d94549ff4623e8f41ea4d9f5319bd8ac8, 5d59fd637a8af42b211a92b2edb2474325b4d488. The advisory is on git.kernel.org.
Last updated
Watch the software you run.
My Stack ranks new CVEs for your products by real-world exploitation, so the next serious one reaches you without reading every advisory.
We'll flag the next CVE, public exploit or patch for Linux, not every advisory.
A free account adds
- The full version matrix and every affected product
- Exploit links, proofs of concept and Metasploit modules
- Email alerts for the products you watch
- The same data over REST API, MCP and CLI