CVE-2024-38541 Details
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).
A buffer overflow vulnerability has been identified in the Linux kernel's device tree module, specifically within the of_modalias function. This issue arises when the buffer allocated for storing device information is too small to accommodate the data being written. If the buffer is inadequate, the length parameter can become negative, causing the function to write beyond the buffer's end. This vulnerability affects several versions of the Linux kernel.
Users can upgrade to the latest version of the Linux kernel to address this vulnerability. For Debian users, the patched version is included in the linux-6.1 package version 6.1.137-1~deb11u1.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 7, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-120 | Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 4.14, < 5.4.294 >= 5.5, < 5.10.238 >= 5.11, < 5.15.182 >= 5.16, < 6.1.136 >= 6.2, < 6.6.33 >= 6.7, < 6.8.12 >= 6.9, < 6.9.3 |
CPE
Remediation
| |
Change History
13 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 4, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 3, 2025 | CVE Modified | CVE |
| Nov 3, 2025 | CVE Modified | CVE |
| Oct 30, 2025 | Modified Analysis | [email protected] |
| Jun 4, 2025 | CVE Modified | kernel.org |
| May 9, 2025 | CVE Modified | kernel.org |
| May 2, 2025 | CVE Modified | kernel.org |
| Apr 1, 2025 | Initial Analysis | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| Jul 3, 2024 | CVE Modified | CISA-ADP |
| Jun 19, 2024 | New CVE Received | kernel.org |