Menu

Star on GitHub · 3.2k

CVE-2022-49197

5.5 · MEDIUM

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 th…

Published Feb 26, 2025CWE-190EPSS 0.28%

Overview

CVE-2022-49197 is a medium-severity vulnerability. It was published on February 26, 2025 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical 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

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2022-49197?

CVE-2022-49197 is a medium-severity vulnerability. It was published on February 26, 2025 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2022-49197?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2022-49197?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2022-49197?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2022-49197 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related MEDIUM CVEs from 2022

View all