CVE-2021-46974 - CVE House
Back to Database
Status published Medium CVE-2021-46974

bpf: Fix masking negation logic upon negative dst register

Vulnerability Description

In the Linux kernel, the following vulnerability has been resolved: bpf: Fix masking negation logic upon negative dst register The negation logic for the case where the off_reg is sitting in the dst register is not correct given then we cannot just invert the add to a sub or vice versa. As a fix, perform the final bitwise and-op unconditionally into AX from the off_reg, then move the pointer from the src to dst and finally use AX as the source for the original pointer arithmetic operation such that the inversion yields a correct result. The single non-AX mov in between is possible given constant blinding is retaining it as it's not an immediate based operation.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2021-46974

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

Affected Software

Linux
Vulnerable Versions:
ae03b6b1c880a03d4771257336dc3bca156dd51b, f92a819b4cbef8c9527d9797110544b2055a4b96, 979d63d50c0c0f7bc537bf821e056cc9fe5abd38, 078da99d449f64ca04d459cdbdcce513b64173cd, 4.14.113, 4.19.19, 4.20.6, 5.0, 0, 4.14.233, 4.19.190, 5.4.117, 5.10.35, 5.11.19, 5.12.2, 5.13

Timeline

Official Publish: February 27th, 2024
Last Modified: May 23rd, 2026
Added to House: July 21st, 2026

CVSS Vectors

V3: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Weaknesses (CWE)

No CWE data available

MITRE ATT&CK TTPs

No associated TTPs found for this vulnerability.