# fs: writeback: fix use-after-free in \_\_mark_inode_dirty()

CVE record · `CVE-2025-39866`

- **Identifiers:** `CVE-2025-39866`
- **State:** Confirmed
- **Severity:** CVSS 7.8 High
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 19 Sept 2025
- **Updated:** 10 Nov 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 19 Sept 2025, 15:26 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: `0747259d13febfcc838980a63c414c9b920cea6f to before e2a14bbae5d8bacaa301362744a110e2be40a3a3` (git)
  - affected: `0747259d13febfcc838980a63c414c9b920cea6f to before b187c976111960e6e54a6b1fff724f6e3d39406c` (git)
  - affected: `0747259d13febfcc838980a63c414c9b920cea6f to before 1edc2feb9c759a9883dfe81cb5ed231412d8b2e4` (git)
  - affected: `0747259d13febfcc838980a63c414c9b920cea6f to before bf89b1f87c72df79cf76203f71fbf8349cd5c9de` (git)
  - affected: `0747259d13febfcc838980a63c414c9b920cea6f to before e63052921f1b25a836feb1500b841bff7a4a0456` (git)
  - affected: `0747259d13febfcc838980a63c414c9b920cea6f to before c8c14adf80bd1a6e4a1d7ee9c2a816881c26d17a` (git)
  - affected: `0747259d13febfcc838980a63c414c9b920cea6f to before d02d2c98d25793902f65803ab853b592c7a96b29` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `4.2`
  - unaffected: `before 4.2` (semver)
  - unaffected: `5.10.247 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.192 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.151 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.105 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.46 to 6.12.*, inclusive` (semver)
  - unaffected: `6.16.6 to 6.16.*, inclusive` (semver)
  - unaffected: `6.17 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 versions from commit 0747259d13febfcc838980a63c414c9b920cea6f up to the fixes listed in the affected ranges are vulnerable to a use-after-free in the writeback code (\_\_mark_inode_dirty()). The source gives few details on who can trigger it. Upgrade to a fixed kernel: 5.10.247 or later in the 5.10 series, 5.15.192 or later in 5.15, 6.1.151 or later in 6.1, or 6.6.105 or later in 6.6. No workaround is listed.

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

- 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.0032, the 26th percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 19 Sept 2025, 15:26 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2025-39866)
- 19 Sept 2025, 16:15 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2025-39866)

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/e2a14bbae5d8bacaa301362744a110e2be40a3a3>
- <https://git.kernel.org/stable/c/b187c976111960e6e54a6b1fff724f6e3d39406c>
- <https://git.kernel.org/stable/c/1edc2feb9c759a9883dfe81cb5ed231412d8b2e4>
- <https://git.kernel.org/stable/c/bf89b1f87c72df79cf76203f71fbf8349cd5c9de>
- <https://git.kernel.org/stable/c/e63052921f1b25a836feb1500b841bff7a4a0456>
- <https://git.kernel.org/stable/c/c8c14adf80bd1a6e4a1d7ee9c2a816881c26d17a>
- <https://git.kernel.org/stable/c/d02d2c98d25793902f65803ab853b592c7a96b29>

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

---

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