CVE-2022-50497

Undefined behavior via signed special-flag shift

Published Oct 4, 2025 · Updated Oct 4, 2025

A shift-out-of-bounds flaw in affected Linux kernel branches allows local users to trigger undefined behavior through binfmt_misc. In fs/binfmt_misc.c, check_special_flags sets bit 31 with a signed int literal even though Node.flags is unsigned long, so registration of the P flag performs an unrepresentable left shift. Reachability requires a mounted binfmt_misc filesystem and write access to its registration interface; the upstream advisory reports a UBSAN warning but does not establish a crash, disclosure, or privilege gain.

CVSS severity7.1
High
EPSS probability0.16%
Next 30 days · Sep 16, 2026
Known exploitationUnconfirmed
Based on sourced intelligence
Hinoki checkNot available
Coverage for this vulnerability

See if you're affected

Explore vulnerability checks for your environment with Hinoki.

Book a demo

Summary

What happened

A shift-out-of-bounds flaw in affected Linux kernel branches allows local users to trigger undefined behavior through binfmt_misc. In fs/binfmt_misc.c, check_special_flags sets bit 31 with a signed int literal even though Node.flags is unsigned long, so registration of the P flag performs an unrepresentable left shift. Reachability requires a mounted binfmt_misc filesystem and write access to its registration interface; the upstream advisory reports a UBSAN warning but does not establish a crash, disclosure, or privilege gain.

The record

CVE
CVE-2022-50497
Published
Oct 4, 2025
Updated
Oct 4, 2025
Vendor
The Linux Kernel Organization
Product
Linux
Classifications
CWE-125
Attack vector
local
Privileges
authenticated

Timeline

How it unfolded

  1. Oct 4, 2025CVE publishedPublication date reported by the CVE source.
  2. Oct 4, 2025Record updatedLatest update available in the CVE record.

Exploitability

Present is not the same as exploitable

Compare your product and version with the public record. A matching version still requires validation against your environment.

Is a vulnerable build present?

Compare these published version ranges with your installed build and any vendor patches.

  1. Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <0f1a48994b3e516d5c7fd5d12204fdba7a604771
  2. Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <419b808504c26b3e3342365f34ccd0843e09a7f8
  3. Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <6a46bf558803dd2b959ca7435a5c143efe837217
  4. Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <88cea1676a09f7c45a1438153a126610c33b1590
  5. Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <97382a2639b1cd9631f6069061e9d7062cd2b098
  6. Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <a651bb5ff997b9f02662bcdef3d8b4e6f0d79656
  7. Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <a91123d4bda463469f68f0427adabf8108001f94
  8. Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <dcbc51d31d0afbd45e830e3cf565a7b3ca7bf0d8
  9. Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <ea6145370be8016755c43aca799815fc4b8c88b1

What conditions does exploitation require?

Attack vectorlocal
Required privilegesauthenticated

What is affected?

The Linux Kernel Organization · Linuxversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <0f1a48994b3e516d5c7fd5d12204fdba7a604771; version=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <419b808504c26b3e3342365f34ccd0843e09a7f8; version=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <6a46bf558803dd2b959ca7435a5c143efe837217; version=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <88cea1676a09f7c45a1438153a126610c33b1590; version=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <97382a2639b1cd9631f6069061e9d7062cd2b098; version=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <a651bb5ff997b9f02662bcdef3d8b4e6f0d79656; version=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <a91123d4bda463469f68f0427adabf8108001f94; version=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <dcbc51d31d0afbd45e830e3cf565a7b3ca7bf0d8; version=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <ea6145370be8016755c43aca799815fc4b8c88b1

Published CVSS scores

7.1NIST National Vulnerability DatabaseCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
7.1UbuntuCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
5.8SUSECVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H
7.0Amazon LinuxCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

CVSS describes severity. EPSS estimates exploitation probability.

Attacks

What attackers are doing with it

Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.

Daily unique IPsNo honeypot observations are available for this CVE in the selected window.

No observations available

Sep 10, 2026Sep 16, 2026
Latest reporting daySep 16, 2026
Latest daily unique IPsUnavailable
Prior 30-day averageUnavailable
SourceShadowserver honeypots (KEV)
Vectorlocal
Privilegesauthenticated
Known exploitationUnconfirmed
Public exploitUnconfirmed

Weakness, pattern, technique

CWE-125Out-of-bounds Read

Public exploit references

No public exploit references are available in this record.

Labels summarize the accepted research assessment. They do not indicate a test against your environment.

Technologies

Your stack

See the directory against your own environment.

Your stack

Check the software in your environment

Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.

Book a demo