# f2fs: fix UAF caused by decrementing sbi->nr_pages\[\] in f2fs_write_end_io()

CVE record · `CVE-2026-31715`

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

Published by the CVE Program (CNA: Linux) at 1 May 2026, 13:56 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: `50fa53eccf9f911a5b435248a2b0bd484fd82e5e to before 7dbdab4430e4654db9aacef12b9b3b8b29ca25cb` (git)
  - affected: `50fa53eccf9f911a5b435248a2b0bd484fd82e5e to before ffb94770dbdfb5411be5d9f44a960b010ec890ad` (git)
  - affected: `50fa53eccf9f911a5b435248a2b0bd484fd82e5e to before 0d40b26377f891e6dcb6efaf8ef9374c99be1b1d` (git)
  - affected: `50fa53eccf9f911a5b435248a2b0bd484fd82e5e to before 1171f329cf1c175321251ac40fd126150d7ad1e8` (git)
  - affected: `50fa53eccf9f911a5b435248a2b0bd484fd82e5e to before 7be222de96c0f9eee6e65eeb017ef855ee185cfa` (git)
  - affected: `50fa53eccf9f911a5b435248a2b0bd484fd82e5e to before 963d2e24d9d92a31e6773b0f642214f10013ebf7` (git)
  - affected: `50fa53eccf9f911a5b435248a2b0bd484fd82e5e to before 188bb65f247a7a7c62f287c9a263aee3cad96fa5` (git)
  - affected: `50fa53eccf9f911a5b435248a2b0bd484fd82e5e to before 2d9c4a4ed4eef1f82c5b16b037aee8bad819fd53` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `4.19`
  - unaffected: `before 4.19` (semver)
  - unaffected: `5.10.259 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.210 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.176 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.140 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.86 to 6.12.*, inclusive` (semver)
  - unaffected: `6.18.25 to 6.18.*, inclusive` (semver)
  - unaffected: `7.0.2 to 7.0.*, inclusive` (semver)
  - unaffected: `7.1 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

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

- **CISA KEV:** Not listed.
- **EPSS:** 0.0012, the 1st percentile, on 18 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 1 May 2026, 14:16 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-31715)

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/7dbdab4430e4654db9aacef12b9b3b8b29ca25cb>
- <https://git.kernel.org/stable/c/ffb94770dbdfb5411be5d9f44a960b010ec890ad>
- <https://git.kernel.org/stable/c/0d40b26377f891e6dcb6efaf8ef9374c99be1b1d>
- <https://git.kernel.org/stable/c/1171f329cf1c175321251ac40fd126150d7ad1e8>
- <https://git.kernel.org/stable/c/7be222de96c0f9eee6e65eeb017ef855ee185cfa>
- <https://git.kernel.org/stable/c/963d2e24d9d92a31e6773b0f642214f10013ebf7>
- <https://git.kernel.org/stable/c/188bb65f247a7a7c62f287c9a263aee3cad96fa5>
- <https://git.kernel.org/stable/c/2d9c4a4ed4eef1f82c5b16b037aee8bad819fd53>

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

---

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