# nfs: handle failure of nfs_get_lock_context in unlock path

CVE record · `CVE-2025-38023`

- **Identifiers:** `CVE-2025-38023`
- **State:** Confirmed
- **Severity:** No CVSS score
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 18 Jun 2025
- **Updated:** 5 Nov 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 18 Jun 2025, 09:28 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: `f30cb757f680f965ba8a2e53cb3588052a01aeb5 to before db6f5ee1fc8f54d079d0751292c2fc2d78e3aad1` (git)
  - affected: `f30cb757f680f965ba8a2e53cb3588052a01aeb5 to before 4c189fd40a09a03f9a900bedb2d9064f1734d72a` (git)
  - affected: `f30cb757f680f965ba8a2e53cb3588052a01aeb5 to before 72f552e00c50f265896d3c19edc6696aa2910081` (git)
  - affected: `f30cb757f680f965ba8a2e53cb3588052a01aeb5 to before 85fb7f8ca5f8c138579fdfc9b97b3083e6077d40` (git)
  - affected: `f30cb757f680f965ba8a2e53cb3588052a01aeb5 to before a6879a076b98c99c9fe747816fe1c29543442441` (git)
  - affected: `f30cb757f680f965ba8a2e53cb3588052a01aeb5 to before da824f1271633bcb515ca8084cda3eda4b3ace51` (git)
  - affected: `f30cb757f680f965ba8a2e53cb3588052a01aeb5 to before f601960af04d2ecb007c928ba153d34051acd9c1` (git)
  - affected: `f30cb757f680f965ba8a2e53cb3588052a01aeb5 to before c457dc1ec770a22636b473ce5d35614adfe97636` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `4.12`
  - unaffected: `before 4.12` (semver)
  - unaffected: `5.4.294 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.238 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.184 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.140 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.92 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.30 to 6.12.*, inclusive` (semver)
  - unaffected: `6.14.8 to 6.14.*, inclusive` (semver)
  - unaffected: `6.15 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Linux kernel NFS client (nfs) is affected in versions from 4.12 before the fixed releases, with stable branches 5.4.294, 5.10.238, 5.15.184 and 6.1.140 and later listed as unaffected. A memory allocation failure in the NFS unlock path can leave an invalid lock context in use, causing a NULL pointer dereference and a kernel crash. The source gives few details on how an attacker would trigger this. No workaround is listed; upgrade to a fixed kernel version.

Written 16 Nov 2026.

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

No source has published a CVSS score for this record yet.

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

## Timeline

- 18 Jun 2025, 09:28 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2025-38023)
- 18 Jun 2025, 10:15 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2025-38023)

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/db6f5ee1fc8f54d079d0751292c2fc2d78e3aad1>
- <https://git.kernel.org/stable/c/4c189fd40a09a03f9a900bedb2d9064f1734d72a>
- <https://git.kernel.org/stable/c/72f552e00c50f265896d3c19edc6696aa2910081>
- <https://git.kernel.org/stable/c/85fb7f8ca5f8c138579fdfc9b97b3083e6077d40>
- <https://git.kernel.org/stable/c/a6879a076b98c99c9fe747816fe1c29543442441>
- <https://git.kernel.org/stable/c/da824f1271633bcb515ca8084cda3eda4b3ace51>
- <https://git.kernel.org/stable/c/f601960af04d2ecb007c928ba153d34051acd9c1>
- <https://git.kernel.org/stable/c/c457dc1ec770a22636b473ce5d35614adfe97636>

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

---

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