# of: module: add buffer overflow check in of_modalias()

CVE record · `CVE-2024-38541`

- **Identifiers:** `CVE-2024-38541`
- **State:** Confirmed
- **Severity:** CVSS 7.8 High
- **Critical:** No
- **CNA:** Linux
- **Weakness (CWE):** [CWE-120](https://cwe.mitre.org/data/definitions/120.html)
- **Tags:** [Memory corruption](https://agentprime.io/advisories/tag/memory-corruption.md)
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 19 Jun 2024
- **Updated:** 5 Aug 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 19 Jun 2024, 13:35 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `bc575064d688c8933a6ca51429bea9bc63628d3b to before 46795440ef2b4ac919d09310a69a404c5bc90a88` (git)
  - affected: `bc575064d688c8933a6ca51429bea9bc63628d3b to before 733e62786bdf1b2b9dbb09ba2246313306503414` (git)
  - affected: `bc575064d688c8933a6ca51429bea9bc63628d3b to before c7f24b7d94549ff4623e8f41ea4d9f5319bd8ac8` (git)
  - affected: `bc575064d688c8933a6ca51429bea9bc63628d3b to before 5d59fd637a8af42b211a92b2edb2474325b4d488` (git)
  - affected: `bc575064d688c8933a6ca51429bea9bc63628d3b to before 0b0d5701a8bf02f8fee037e81aacf6746558bfd6` (git)
  - affected: `bc575064d688c8933a6ca51429bea9bc63628d3b to before ee332023adfd5882808f2dabf037b32d6ce36f9e` (git)
  - affected: `bc575064d688c8933a6ca51429bea9bc63628d3b to before e45b69360a63165377b30db4a1dfddd89ca18e9a` (git)
  - affected: `bc575064d688c8933a6ca51429bea9bc63628d3b to before cf7385cb26ac4f0ee6c7385960525ad534323252` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `4.14`
  - unaffected: `before 4.14` (semver)
  - unaffected: `5.4.294 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.238 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.182 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.136 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.33 to 6.6.*, inclusive` (semver)
  - unaffected: `6.8.12 to 6.8.*, inclusive` (semver)
  - unaffected: `6.9.3 to 6.9.*, inclusive` (semver)
  - unaffected: `6.10 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

- 7.8 High, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`, from CNA (Linux) (used for this record)
- 9.8 Critical, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`, from ADP (CISA-ADP)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0090, the 60th percentile, on 21 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the CVE Program, published 19 Jun 2024. New records show when each source confirmed them.

## Sources

- [CVE List: CVE-2024-38541](https://www.cve.org/CVERecord?id=CVE-2024-38541)
- [NVD: CVE-2024-38541](https://nvd.nist.gov/vuln/detail/CVE-2024-38541)

### References from the CNA

- <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>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2024-38541>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2024-38541/>. Everything for agents: <https://agentprime.io/llms.txt>.
