# mm/damon/sysfs: check contexts->nr before accessing contexts_arr\[0\]

CVE record · `CVE-2026-31458`

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

Published by the CVE Program (CNA: Linux) at 22 Apr 2026, 13:53 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: `0ac32b8affb5a384253dbb8339bd2d0e91add0b7 to before aba546061341b56e9ffb37e1eb661a3628b6ec12` (git)
  - affected: `0ac32b8affb5a384253dbb8339bd2d0e91add0b7 to before 1e8da792672481d603fa7cd0d815577220a3ee27` (git)
  - affected: `0ac32b8affb5a384253dbb8339bd2d0e91add0b7 to before 708033c231bd782858f4ddbb46ee874a5a5fbdab` (git)
  - affected: `0ac32b8affb5a384253dbb8339bd2d0e91add0b7 to before bbe03ad3fb9e714191757ca7b41582f930be7be2` (git)
  - affected: `0ac32b8affb5a384253dbb8339bd2d0e91add0b7 to before 1bfe9fb5ed2667fb075682408b776b5273162615` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `5.18`
  - unaffected: `before 5.18` (semver)
  - unaffected: `6.6.131 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.80 to 6.12.*, inclusive` (semver)
  - unaffected: `6.18.21 to 6.18.*, inclusive` (semver)
  - unaffected: `6.19.11 to 6.19.*, inclusive` (semver)
  - unaffected: `7.0 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.

> The Linux kernel's DAMON sysfs code is affected from 5.18 until fixed in the 6.6.131, 6.12.80, 6.18.21 and 6.19.11 stable series. A privileged local user who sets nr_contexts to 0 while DAMON is running can trigger NULL pointer dereferences. Upgrade to 6.6.131, 6.12.80, 6.18.21, 6.19.11 or a later release in the same series.

Written 17 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.0012, the 2nd percentile, on 18 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 22 Apr 2026, 13:53 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2026-31458)
- 22 Apr 2026, 14:16 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-31458)

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/aba546061341b56e9ffb37e1eb661a3628b6ec12>
- <https://git.kernel.org/stable/c/1e8da792672481d603fa7cd0d815577220a3ee27>
- <https://git.kernel.org/stable/c/708033c231bd782858f4ddbb46ee874a5a5fbdab>
- <https://git.kernel.org/stable/c/bbe03ad3fb9e714191757ca7b41582f930be7be2>
- <https://git.kernel.org/stable/c/1bfe9fb5ed2667fb075682408b776b5273162615>

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

---

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