# fs/proc: fix uaf in proc_readdir_de()

CVE record · `CVE-2025-40271`

- **Identifiers:** `CVE-2025-40271`
- **State:** Confirmed
- **Severity:** CVSS 7.8 High
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 6 Dec 2025
- **Updated:** 5 Aug 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 6 Dec 2025, 21:50 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: `710585d4922fd315f2cada8fbe550ae8ed23e994 to before 1d1596d68a6f11d28f677eedf6cf5b17dbfeb491` (git)
  - affected: `710585d4922fd315f2cada8fbe550ae8ed23e994 to before c81d0385500446efe48c305bbb83d47f2ae23a50` (git)
  - affected: `710585d4922fd315f2cada8fbe550ae8ed23e994 to before 4cba73c4c89219beef7685a47374bf88b1022369` (git)
  - affected: `710585d4922fd315f2cada8fbe550ae8ed23e994 to before 6f2482745e510ae1dacc9b090194b9c5f918d774` (git)
  - affected: `710585d4922fd315f2cada8fbe550ae8ed23e994 to before 67272c11f379d9aa5e0f6b16286b9d89b3f76046` (git)
  - affected: `710585d4922fd315f2cada8fbe550ae8ed23e994 to before 623bb26127fb581a741e880e1e1a47d79aecb6f8` (git)
  - affected: `710585d4922fd315f2cada8fbe550ae8ed23e994 to before 03de7ff197a3d0e17d0d5c58fdac99a63cba8110` (git)
  - affected: `710585d4922fd315f2cada8fbe550ae8ed23e994 to before 895b4c0c79b092d732544011c3cecaf7322c36a1` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `3.19`
  - unaffected: `before 3.19` (semver)
  - unaffected: `5.4.302 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.247 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.197 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.159 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.117 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.59 to 6.12.*, inclusive` (semver)
  - unaffected: `6.17.9 to 6.17.*, inclusive` (semver)
  - unaffected: `6.18 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)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0049, the 42nd percentile, on 19 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 6 Dec 2025. New records show when each source confirmed them.

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/1d1596d68a6f11d28f677eedf6cf5b17dbfeb491>
- <https://git.kernel.org/stable/c/c81d0385500446efe48c305bbb83d47f2ae23a50>
- <https://git.kernel.org/stable/c/4cba73c4c89219beef7685a47374bf88b1022369>
- <https://git.kernel.org/stable/c/6f2482745e510ae1dacc9b090194b9c5f918d774>
- <https://git.kernel.org/stable/c/67272c11f379d9aa5e0f6b16286b9d89b3f76046>
- <https://git.kernel.org/stable/c/623bb26127fb581a741e880e1e1a47d79aecb6f8>
- <https://git.kernel.org/stable/c/03de7ff197a3d0e17d0d5c58fdac99a63cba8110>
- <https://git.kernel.org/stable/c/895b4c0c79b092d732544011c3cecaf7322c36a1>

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-2025-40271>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

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