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.
History

Mon, 04 Nov 2024 13:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published: 2024-02-27T18:47:08.487Z

Updated: 2024-11-04T11:56:57.967Z

Reserved: 2024-02-27T18:42:55.944Z

Link: CVE-2021-46974

cve-icon Vulnrichment

Updated: 2024-08-04T05:17:43.104Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2024-02-27T19:04:07.500

Modified: 2024-02-28T14:06:45.783

Link: CVE-2021-46974

cve-icon Redhat

Severity : Moderate

Publid Date: 2024-02-27T00:00:00Z

Links: CVE-2021-46974 - Bugzilla