CVE-2021-46974
HIGHLinux Kernel 4.14.113-4.14.233 - Use-After-Free in BPF Masking Negation Logic
Title source: llmDescription
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.
References (7)
Core 7
Core References
Scores
CVSS v3
7.1
EPSS
0.0025
EPSS Percentile
16.0%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
partial
Details
Status
published
Products (21)
Linux/Linux
< 5.0
Linux/Linux
078da99d449f64ca04d459cdbdcce513b64173cd
Linux/Linux
4.14.113 - 4.14.233
Linux/Linux
4.14.233 - 4.14.*
Linux/Linux
4.19.19 - 4.19.190
Linux/Linux
4.19.190 - 4.19.*
Linux/Linux
4.20.6 - 4.21
Linux/Linux
5.0
Linux/Linux
5.10.35 - 5.10.*
Linux/Linux
5.11.19 - 5.11.*
... and 11 more
Published
Feb 27, 2024
Tracked Since
Feb 18, 2026