CVE-2024-38541
of: module: add buffer overflow check in of_modalias()
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= bc575064d688c8933a6ca51429bea9bc63628d3b, < 46795440ef2b4ac919d09310a69a404c5bc90a88; >= bc575064d688c8933a6ca51429bea9bc63628d3b, < 733e62786bdf1b2b9dbb09ba2246313306503414; >= bc575064d688c8933a6ca51429bea9bc63628d3b, < c7f24b7d94549ff4623e8f41ea4d9f5319bd8ac8; >= bc575064d688c8933a6ca51429bea9bc63628d3b, < 5d59fd637a8af42b211a92b2edb2474325b4d488; >= bc575064d688c8933a6ca51429bea9bc63628d3b, < 0b0d5701a8bf02f8fee037e81aacf6746558bfd6; >= bc575064d688c8933a6ca51429bea9bc63628d3b, < ee332023adfd5882808f2dabf037b32d6ce36f9e; >= bc575064d688c8933a6ca51429bea9bc63628d3b, < e45b69360a63165377b30db4a1dfddd89ca18e9a; >= bc575064d688c8933a6ca51429bea9bc63628d3b, < cf7385cb26ac4f0ee6c7385960525ad534323252
- Anyone running Linux 4.14
Vulnerability facts
- Affected
- Linux >= bc575064d688c8933a6ca51429bea9bc63628d3b, < 46795440ef2b4ac919d09310a69a404c5bc90a88; >= bc575064d688c8933a6ca51429bea9bc63628d3b, < 733e62786bdf1b2b9dbb09ba2246313306503414; >= bc575064d688c8933a6ca51429bea9bc63628d3b, < c7f24b7d94549ff4623e8f41ea4d9f5319bd8ac8; >= bc575064d688c8933a6ca51429bea9bc63628d3b, < 5d59fd637a8af42b211a92b2edb2474325b4d488; >= bc575064d688c8933a6ca51429bea9bc63628d3b, < 0b0d5701a8bf02f8fee037e81aacf6746558bfd6; >= bc575064d688c8933a6ca51429bea9bc63628d3b, < ee332023adfd5882808f2dabf037b32d6ce36f9e; >= bc575064d688c8933a6ca51429bea9bc63628d3b, < e45b69360a63165377b30db4a1dfddd89ca18e9a; >= bc575064d688c8933a6ca51429bea9bc63628d3b, < cf7385cb26ac4f0ee6c7385960525ad534323252; Linux 4.14
- Fixed in
- Linux 46795440ef2b4ac919d09310a69a404c5bc90a88, Linux 733e62786bdf1b2b9dbb09ba2246313306503414, Linux 5d59fd637a8af42b211a92b2edb2474325b4d488, Linux 0b0d5701a8bf02f8fee037e81aacf6746558bfd6
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 1.18% chance of exploitation in 30 days (percentile 67, 2026-11-26)
- CWE
- CWE-120
- Modified
Description
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).
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= bc575064d688c8933a6ca51429bea9bc63628d3b, < 46795440ef2b4ac919d09310a69a404c5bc90a88; >= bc575064d688c8933a6ca51429bea9bc63628d3b, < 733e62786bdf1b2b9dbb09ba2246313306503414; >= bc575064d688c8933a6ca51429bea9bc63628d3b, < c7f24b7d94549ff4623e8f41ea4d9f5319bd8ac8; >= bc575064d688c8933a6ca51429bea9bc63628d3b, < 5d59fd637a8af42b211a92b2edb2474325b4d488; >= bc575064d688c8933a6ca51429bea9bc63628d3b, < 0b0d5701a8bf02f8fee037e81aacf6746558bfd6; >= bc575064d688c8933a6ca51429bea9bc63628d3b, < ee332023adfd5882808f2dabf037b32d6ce36f9e; >= bc575064d688c8933a6ca51429bea9bc63628d3b, < e45b69360a63165377b30db4a1dfddd89ca18e9a; >= bc575064d688c8933a6ca51429bea9bc63628d3b, < cf7385cb26ac4f0ee6c7385960525ad534323252 | — | cvelist |
| Linux | 4.14 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-38541. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-38541.md Affected: Linux >= bc575064d688c8933a6ca51429bea9bc63628d3b, < 46795440ef2b4ac919d09310a69a404c5bc90a88; >= bc575064d688c8933a6ca51429bea9bc63628d3b, < 733e62786bdf1b2b9dbb09ba2246313306503414; >= bc575064d688c8933a6ca51429bea9bc63628d3b, < c7f24b7d94549ff4623e8f41ea4d9f5319bd8ac8; >= bc575064d688c8933a6ca51… Fixed in: Linux 46795440ef2b4ac919d09310a69a404c5bc90a88, Linux 733e62786bdf1b2b9dbb09ba2246313306503414, Linux 5d59fd637a8af42b211a92b2edb2474325b4d488, Linux 0b0d5701a8bf02f8fee037e81aacf6746558bfd6 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/46795440ef2b4ac919d09310a69a404c5bc90a88
- https://git.kernel.org/stable/c/733e62786bdf1b2b9dbb09ba2246313306503414
- https://git.kernel.org/stable/c/c7f24b7d94549ff4623e8f41ea4d9f5319bd8ac8
- https://git.kernel.org/stable/c/5d59fd637a8af42b211a92b2edb2474325b4d488
- https://git.kernel.org/stable/c/0b0d5701a8bf02f8fee037e81aacf6746558bfd6
- https://git.kernel.org/stable/c/ee332023adfd5882808f2dabf037b32d6ce36f9e
- https://git.kernel.org/stable/c/e45b69360a63165377b30db4a1dfddd89ca18e9a
- https://git.kernel.org/stable/c/cf7385cb26ac4f0ee6c7385960525ad534323252
FAQ
Is CVE-2024-38541 being exploited?
There is no confirmed exploitation: CVE-2024-38541 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.18% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-38541?
High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2024-38541?
Linux >= bc575064d688c8933a6ca51429bea9bc63628d3b, < 46795440ef2b4ac919d09310a69a404c5bc90a88; >= bc575064d688c8933a6ca51429bea9bc63628d3b, < 733e62786bdf1b2b9dbb09ba2246313306503414; >= bc575064d688c8933a6ca51429bea9bc63628d3b, < c7f24b7d94549ff4623e8f41ea4d9f5319bd8ac8; >= bc575064d688c8933a6ca51429bea9bc63628d3b, < 5d59fd637a8af42b211a92b2edb2474325b4d488; >= bc575064d688c8933a6ca51429bea9bc63628d3b, < 0b0d5701a8bf02f8fee037e81aacf6746558bfd6; >= bc575064d688c8933a6ca51429bea9bc63628d3b, < ee332023adfd5882808f2dabf037b32d6ce36f9e; >= bc575064d688c8933a6ca51429bea9bc63628d3b, < e45b69360a63165377b30db4a1dfddd89ca18e9a; >= bc575064d688c8933a6ca51429bea9bc63628d3b, < cf7385cb26ac4f0ee6c7385960525ad534323252; Linux 4.14.
Is there a fix for CVE-2024-38541?
Yes. Fixed in Linux 46795440ef2b4ac919d09310a69a404c5bc90a88, Linux 733e62786bdf1b2b9dbb09ba2246313306503414, Linux 5d59fd637a8af42b211a92b2edb2474325b4d488, Linux 0b0d5701a8bf02f8fee037e81aacf6746558bfd6. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2024-38541?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.