CVE-2024-38541
of: module: add buffer overflow check in of_modalias()
Check your servers for CVE-2024-38541
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-38541 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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).
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.90%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 60.7% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 7 May 2025):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- yes: an attacker can automate the attack across many targets
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-120 Buffer Copy without Checking Size of Input
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from bc575064d688c8933a6ca51429bea9bc63628d3b, before 46795440ef2b4ac919d09310a69a404c5bc90a88 affected from bc575064d688c8933a6ca51429bea9bc63628d3b, before 733e62786bdf1b2b9dbb09ba2246313306503414 affected from bc575064d688c8933a6ca51429bea9bc63628d3b, before c7f24b7d94549ff4623e8f41ea4d9f5319bd8ac8 affected from bc575064d688c8933a6ca51429bea9bc63628d3b, before 5d59fd637a8af42b211a92b2edb2474325b4d488 affected from bc575064d688c8933a6ca51429bea9bc63628d3b, before 0b0d5701a8bf02f8fee037e81aacf6746558bfd6 affected from bc575064d688c8933a6ca51429bea9bc63628d3b, before ee332023adfd5882808f2dabf037b32d6ce36f9e affected from bc575064d688c8933a6ca51429bea9bc63628d3b, before e45b69360a63165377b30db4a1dfddd89ca18e9a affected from bc575064d688c8933a6ca51429bea9bc63628d3b, before cf7385cb26ac4f0ee6c7385960525ad534323252
Other versions: unaffected
|
| Linux |
affected 4.14 unaffected before 4.14 unaffected from 5.4.294 up to and including 5.4.* unaffected from 5.10.238 up to and including 5.10.* unaffected from 5.15.182 up to and including 5.15.* unaffected from 6.1.136 up to and including 6.1.* unaffected from 6.6.33 up to and including 6.6.* unaffected from 6.8.12 up to and including 6.8.* unaffected from 6.9.3 up to and including 6.9.* unaffected 6.10 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-38541 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-38541
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-38541
trivy image --scanners vuln IMAGE | grep CVE-2024-38541
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/46795440ef2b4ac919d09310a69a404c5bc90a88 git.kernel.org
- https://git.kernel.org/stable/c/733e62786bdf1b2b9dbb09ba2246313306503414 git.kernel.org
- https://git.kernel.org/stable/c/c7f24b7d94549ff4623e8f41ea4d9f5319bd8ac8 git.kernel.org
- https://git.kernel.org/stable/c/5d59fd637a8af42b211a92b2edb2474325b4d488 git.kernel.org
- https://git.kernel.org/stable/c/0b0d5701a8bf02f8fee037e81aacf6746558bfd6 git.kernel.org
- https://git.kernel.org/stable/c/ee332023adfd5882808f2dabf037b32d6ce36f9e git.kernel.org
- https://git.kernel.org/stable/c/e45b69360a63165377b30db4a1dfddd89ca18e9a git.kernel.org
- https://git.kernel.org/stable/c/cf7385cb26ac4f0ee6c7385960525ad534323252 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html lists.debian.org
Source: the record CVE-2024-38541 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse