Skip to main content
Network Thinking Solutions Logo

CVE-2022-49197

Linux kernel: af_netlink: Fix shift out of bounds in group mask calculation

All CVEs
CVE-2022-49197Published 2/26/2025

Linux kernel: af_netlink: Fix shift out of bounds in group mask calculation

Vendor advisory
CVSS5.5Medium

Overview

In the Linux kernel, the following vulnerability has been resolved: af_netlink: Fix shift out of bounds in group mask calculation When a netlink message is received, netlink_recvmsg() fills in the address of the sender. One of the fields is the 32-bit bitfield nl_groups, which carries the multicast group on which the message was received. The least significant bit corresponds to group 1, and therefore the highest group that the field can represent is 32. Above that, the UB sanitizer flags the out-of-bounds shift attempts. Which bits end up being set in such case is implementation defined, but it's either going to be a wrong non-zero value, or zero, which is at least not misleading. Make the latter choice deterministic by always setting to 0 for higher-numbered multicast groups. To get information about membership in groups >= 32, userspace is expected to use nl_pktinfo control messages[0], which are enabled by NETLINK_PKTINFO socket option. [0] https://lwn.net/Articles/147608/ The way to trigger this issue is e.g. through monitoring the BRVLAN group: # bridge monitor vlan & # ip link add name br type bridge Which produces the following citation: UBSAN: shift-out-of-bounds in net/netlink/af_netlink.c:162:19 shift exponent 32 is too large for 32-bit type 'int'

Published
2/26/2025
Last modified
6/17/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 2.6.14, < 4.9.311

Verify advisory

Source
linux kernel
linux
≥ 4.10, < 4.14.276

Verify advisory

Source
linux kernel
linux
≥ 4.15, < 4.19.238

Verify advisory

Source
linux kernel
linux
≥ 4.20, < 5.4.189

Verify advisory

Source
linux kernel
linux
≥ 5.5, < 5.10.110

Verify advisory

Source
linux kernel
linux
≥ 5.11, < 5.15.33

Verify advisory

Source
linux kernel
linux
≥ 5.16, < 5.16.19

Verify advisory

Source
linux kernel
linux
≥ 5.17, < 5.17.2

Verify advisory

Source
Linux
Linux
≥ f7fa9b10edbb9391bdd4ec8e8b3d621d0664b198, < e1c5d46f05aa23d740daae5cd3a6472145afac42

Verify advisory

Source
Linux
Linux
≥ f7fa9b10edbb9391bdd4ec8e8b3d621d0664b198, < ac5883a8890a11c00b32a19949a25d4afeaa2f5a

Verify advisory

Source
Linux
Linux
≥ f7fa9b10edbb9391bdd4ec8e8b3d621d0664b198, < f75f4abeec4c04b600a15b50c89a481f1e7435ee

Verify advisory

Source
Linux
Linux
≥ f7fa9b10edbb9391bdd4ec8e8b3d621d0664b198, < 41249fff507387c3323b198d0052faed08b14de4

Verify advisory

Source
Linux
Linux
≥ f7fa9b10edbb9391bdd4ec8e8b3d621d0664b198, < b0898362188e05b2202656058cc32d98fabf3bac

Verify advisory

Source
Linux
Linux
≥ f7fa9b10edbb9391bdd4ec8e8b3d621d0664b198, < 7409ff6393a67ff9838d0ae1bd102fb5f020d07a

Verify advisory

Source
Linux
Linux
≥ f7fa9b10edbb9391bdd4ec8e8b3d621d0664b198, < e8aaf3134bc5e943048eefe9f2ddaabf41d92b1a

Verify advisory

Source
Linux
Linux
≥ f7fa9b10edbb9391bdd4ec8e8b3d621d0664b198, < e23e1e981247feb3c7d0236fe58aceb685f234ae

Verify advisory

Source
Linux
Linux
≥ f7fa9b10edbb9391bdd4ec8e8b3d621d0664b198, < 0caf6d9922192dd1afa8dc2131abfb4df1443b9f

Verify advisory

Source
Linux
Linux
2.6.14

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 5.5. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.