# capabilities: fix undefined behavior in bit shift for CAP_TO_MASK

CVE record · `CVE-2022-49870`

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

Published by the CVE Program (CNA: Linux) at 1 May 2025, 14:10 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: `e338d263a76af78fe8f38a72131188b58fceb591 to before 5b79fa628e2ab789e629a83cd211ef9b4c1a593e` (git)
  - affected: `e338d263a76af78fe8f38a72131188b58fceb591 to before 65b0bc7a0690861812ade523d19f82688ab819dc` (git)
  - affected: `e338d263a76af78fe8f38a72131188b58fceb591 to before dbaab08c8677d598244d21afb7818e44e1c5d826` (git)
  - affected: `e338d263a76af78fe8f38a72131188b58fceb591 to before 5661f111a1616ac105ec8cec81bff99b60f847ac` (git)
  - affected: `e338d263a76af78fe8f38a72131188b58fceb591 to before fcbd2b336834bd24e1d9454ad5737856470c10d7` (git)
  - affected: `e338d263a76af78fe8f38a72131188b58fceb591 to before 151dc8087b5609e53b069c068e3f3ee100efa586` (git)
  - affected: `e338d263a76af78fe8f38a72131188b58fceb591 to before 27bdb134c043ff32c459d98f16550d0ffa0b3c34` (git)
  - affected: `e338d263a76af78fe8f38a72131188b58fceb591 to before 46653972e3ea64f79e7f8ae3aa41a4d3fdb70a13` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `2.6.25`
  - unaffected: `before 2.6.25` (semver)
  - unaffected: `4.9.334 to 4.9.*, inclusive` (semver)
  - unaffected: `4.14.300 to 4.14.*, inclusive` (semver)
  - unaffected: `4.19.267 to 4.19.*, inclusive` (semver)
  - unaffected: `5.4.225 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.155 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.79 to 5.15.*, inclusive` (semver)
  - unaffected: `6.0.9 to 6.0.*, inclusive` (semver)
  - unaffected: `6.1 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 capability code used in prctl handling performs an undefined 31-bit left shift on a signed 32-bit value, affecting kernels from 2.6.25 until fixed. The source gives few details about attacker access or impact. Upgrade to 4.9.334, 4.14.300, 4.19.267, or 5.4.225, or a later release in the matching series.

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

## Timeline

- 1 May 2025, 14:10 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2022-49870)
- 1 May 2025, 15:16 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2022-49870)

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/5b79fa628e2ab789e629a83cd211ef9b4c1a593e>
- <https://git.kernel.org/stable/c/65b0bc7a0690861812ade523d19f82688ab819dc>
- <https://git.kernel.org/stable/c/dbaab08c8677d598244d21afb7818e44e1c5d826>
- <https://git.kernel.org/stable/c/5661f111a1616ac105ec8cec81bff99b60f847ac>
- <https://git.kernel.org/stable/c/fcbd2b336834bd24e1d9454ad5737856470c10d7>
- <https://git.kernel.org/stable/c/151dc8087b5609e53b069c068e3f3ee100efa586>
- <https://git.kernel.org/stable/c/27bdb134c043ff32c459d98f16550d0ffa0b3c34>
- <https://git.kernel.org/stable/c/46653972e3ea64f79e7f8ae3aa41a4d3fdb70a13>

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

---

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