CVE-2024-38541: Linux kernel · of: module: add buffer overflow check in of_modalias()
Source GCVE Database
Not known to be exploited · CVSS 9.8 Critical.
Data as of 30 Oct 2026, 00:36 UTC
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 19 Jun 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
AI-suggested
The vulnerability has been resolved in the Linux kernel by adding appropriate buffer overflow checks in the of_modalias() function. Users and administrators should apply the official Linux kernel updates that include this fix. Since no specific patch links or fixed versions are provided, verify with the Linux kernel vendor or distribution for the relevant patched kernel versions and apply them promptly.
Description
A critical buffer overflow vulnerability (CVE-2024-38541) was identified and fixed in the Linux kernel's of_modalias() function. The flaw occurs when the buffer is too small for the initial snprintf() call, causing a negative length parameter and a pointer that can exceed the buffer boundary. This can lead to memory corruption. The issue was addressed by adding proper buffer overflow checks after the first snprintf() and correcting the length check after strlen(), including the terminating null character.
References
- nvd.nist.gov/vuln/detail/CVE-2024-38541 (opens in a new tab)
- git.kernel.org/stable/c/0b0d5701a8bf02f8fee037e81aacf6746558bfd6 (opens in a new tab)
- git.kernel.org/stable/c/46795440ef2b4ac919d09310a69a404c5bc90a88 (opens in a new tab)
- git.kernel.org/stable/c/5d59fd637a8af42b211a92b2edb2474325b4d488 (opens in a new tab)
- git.kernel.org/stable/c/733e62786bdf1b2b9dbb09ba2246313306503414 (opens in a new tab)
- git.kernel.org/stable/c/c7f24b7d94549ff4623e8f41ea4d9f5319bd8ac8 (opens in a new tab)
- git.kernel.org/stable/c/cf7385cb26ac4f0ee6c7385960525ad534323252 (opens in a new tab)
- git.kernel.org/stable/c/e45b69360a63165377b30db4a1dfddd89ca18e9a (opens in a new tab)
- git.kernel.org/stable/c/ee332023adfd5882808f2dabf037b32d6ce36f9e (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/05/msg00045.html (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/10/msg00007.html (opens in a new tab)