CVE-2022-49197

af_netlink: Fix shift out of bounds in group mask calculation

MEDIUM
5.5
CVSS Score
Published: February 26, 2025 at 01:55 AM UTC
Updated: June 17, 2026 at 05:17 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%

Description

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'

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.6.14 ≤ v < 4.14.2762.6.14 ≤ v < 4.19.2382.6.14 ≤ v < 4.9.3112.6.14 ≤ v < 5.10.1102.6.14 ≤ v < 5.15.332.6.14 ≤ v < 5.16.192.6.14 ≤ v < 5.17.22.6.14 ≤ v < 5.182.6.14 ≤ v < 5.4.1894.10 ≤ v < 4.14.2764.15 ≤ v < 4.19.2384.20 ≤ v < 5.4.1895.11 ≤ v < 5.15.335.16 ≤ v < 5.16.195.17 ≤ v < 5.17.25.5 ≤ v < 5.10.1102.6.14f7fa9b10edbb9391bdd4ec8e8b3d621d0664b198
Vendor states this is fixed in 0caf6d9922192dd1afa8dc2131abfb4df1443b9f (fixed)
Vendor states this is fixed in 41249fff507387c3323b198d0052faed08b14de4 (fixed)
Vendor states this is fixed in 7409ff6393a67ff9838d0ae1bd102fb5f020d07a (fixed)
Vendor states this is fixed in ac5883a8890a11c00b32a19949a25d4afeaa2f5a (fixed)
Vendor states this is fixed in b0898362188e05b2202656058cc32d98fabf3bac (fixed)
Vendor states this is fixed in e1c5d46f05aa23d740daae5cd3a6472145afac42 (fixed)
Vendor states this is fixed in e23e1e981247feb3c7d0236fe58aceb685f234ae (fixed)
Vendor states this is fixed in e8aaf3134bc5e943048eefe9f2ddaabf41d92b1a (fixed)
Vendor states this is fixed in f75f4abeec4c04b600a15b50c89a481f1e7435ee (fixed)
Vendor states this is fixed in 2.6.14 (unaffected)
Vendor states this is fixed in 4.14.276 (unaffected)
Vendor states this is fixed in 4.19.238 (unaffected)
Vendor states this is fixed in 4.9.311 (unaffected)
Vendor states this is fixed in 5.10.110 (unaffected)
Vendor states this is fixed in 5.15.33 (unaffected)
Vendor states this is fixed in 5.16.19 (unaffected)
Vendor states this is fixed in 5.17.2 (unaffected)
Vendor states this is fixed in 5.18 (unaffected)
Vendor states this is fixed in 5.4.189 (unaffected)

References (9)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0caf6d9922192dd1afa8dc2131abfb4df1443b9f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/41249fff507387c3323b198d0052faed08b14de4
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7409ff6393a67ff9838d0ae1bd102fb5f020d07a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ac5883a8890a11c00b32a19949a25d4afeaa2f5a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b0898362188e05b2202656058cc32d98fabf3bac
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e1c5d46f05aa23d740daae5cd3a6472145afac42
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e23e1e981247feb3c7d0236fe58aceb685f234ae
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e8aaf3134bc5e943048eefe9f2ddaabf41d92b1a

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-190

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card