CVE-2021-46974

Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
27/02/2024
Last modified:
09/01/2025

Description

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

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 4.14.113 (including) 4.14.233 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 4.19.19 (including) 4.19.190 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.0 (including) 5.4.117 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.5 (including) 5.10.35 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.11 (including) 5.11.19 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.12 (including) 5.12.2 (excluding)