# watch_queue: Fix NULL dereference in error cleanup

CVE record · `CVE-2022-49257`

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

Published by the CVE Program (CNA: Linux) at 26 Feb 2025, 01: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: `c73be61cede5882f9605a852414db559c0ebedfd to before 5ae75b4ed30322b42abaa75ef1b784addfdb7dc9` (git)
  - affected: `c73be61cede5882f9605a852414db559c0ebedfd to before 695c47cea02b9101e2fc2e7d36d552128592b347` (git)
  - affected: `c73be61cede5882f9605a852414db559c0ebedfd to before 112a2f9b0a8457794095a0450598f150724ec456` (git)
  - affected: `c73be61cede5882f9605a852414db559c0ebedfd to before b6f5ad3e45d19f9c4ee3e8a2aff829f28d68591d` (git)
  - affected: `c73be61cede5882f9605a852414db559c0ebedfd to before a635415a064e77bcfbf43da413fd9dfe0bbed9cb` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `5.8`
  - unaffected: `before 5.8` (semver)
  - unaffected: `5.10.110 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.33 to 5.15.*, inclusive` (semver)
  - unaffected: `5.16.19 to 5.16.*, inclusive` (semver)
  - unaffected: `5.17.2 to 5.17.*, inclusive` (semver)
  - unaffected: `5.18 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 is vulnerable to a NULL pointer dereference in the error cleanup of watch_queue_set_size(), reachable through a pipe ioctl, in kernels from 5.8 before the fixes. The source gives few details on the attacker's required access or the full impact beyond the reported KASAN null-pointer read. Upgrade to 5.10.110 or later, 5.15.33 or later, 5.16.19 or later, or 5.17.2 or later, depending on your branch.

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

## Timeline

- 26 Feb 2025, 01:56 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2022-49257)
- 26 Feb 2025, 07:01 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2022-49257)

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/5ae75b4ed30322b42abaa75ef1b784addfdb7dc9>
- <https://git.kernel.org/stable/c/695c47cea02b9101e2fc2e7d36d552128592b347>
- <https://git.kernel.org/stable/c/112a2f9b0a8457794095a0450598f150724ec456>
- <https://git.kernel.org/stable/c/b6f5ad3e45d19f9c4ee3e8a2aff829f28d68591d>
- <https://git.kernel.org/stable/c/a635415a064e77bcfbf43da413fd9dfe0bbed9cb>

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

---

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