# binfmt_misc: fix shift-out-of-bounds in check_special_flags

CVE record · `CVE-2022-50497`

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

Published by the CVE Program (CNA: Linux) at 4 Oct 2025, 15:43 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: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 0f1a48994b3e516d5c7fd5d12204fdba7a604771` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before ea6145370be8016755c43aca799815fc4b8c88b1` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 97382a2639b1cd9631f6069061e9d7062cd2b098` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 419b808504c26b3e3342365f34ccd0843e09a7f8` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before dcbc51d31d0afbd45e830e3cf565a7b3ca7bf0d8` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 88cea1676a09f7c45a1438153a126610c33b1590` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before a651bb5ff997b9f02662bcdef3d8b4e6f0d79656` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before a91123d4bda463469f68f0427adabf8108001f94` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 6a46bf558803dd2b959ca7435a5c143efe837217` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `2.6.12`
  - unaffected: `before 2.6.12` (semver)
  - unaffected: `4.9.337 to 4.9.*, inclusive` (semver)
  - unaffected: `4.14.303 to 4.14.*, inclusive` (semver)
  - unaffected: `4.19.270 to 4.19.*, inclusive` (semver)
  - unaffected: `5.4.229 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.163 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.86 to 5.15.*, inclusive` (semver)
  - unaffected: `6.0.16 to 6.0.*, inclusive` (semver)
  - unaffected: `6.1.2 to 6.1.*, inclusive` (semver)
  - unaffected: `6.2 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.

> This Linux kernel advisory covers a shift-out-of-bounds bug in the binfmt_misc driver's check_special_flags function, which UBSAN reported when a left shift of 1 by 31 places was performed on a type 'int'. The source gives few details about the impact or required access. The fix changes the flag macros to use the same unsigned long type as the Node flags field. No fixed version is listed in the source, but the kernel version ranges given include stable backports, so the reader should check their kernel release against the listed fixed commits.

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

## Timeline

- 4 Oct 2025, 15:43 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2022-50497)
- 4 Oct 2025, 16:15 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2022-50497)

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/0f1a48994b3e516d5c7fd5d12204fdba7a604771>
- <https://git.kernel.org/stable/c/ea6145370be8016755c43aca799815fc4b8c88b1>
- <https://git.kernel.org/stable/c/97382a2639b1cd9631f6069061e9d7062cd2b098>
- <https://git.kernel.org/stable/c/419b808504c26b3e3342365f34ccd0843e09a7f8>
- <https://git.kernel.org/stable/c/dcbc51d31d0afbd45e830e3cf565a7b3ca7bf0d8>
- <https://git.kernel.org/stable/c/88cea1676a09f7c45a1438153a126610c33b1590>
- <https://git.kernel.org/stable/c/a651bb5ff997b9f02662bcdef3d8b4e6f0d79656>
- <https://git.kernel.org/stable/c/a91123d4bda463469f68f0427adabf8108001f94>
- <https://git.kernel.org/stable/c/6a46bf558803dd2b959ca7435a5c143efe837217>

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

---

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