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.
Metrics
Affected Vendors & Products
References
History
Mon, 04 Nov 2024 13:15:00 +0000
Type | Values Removed | Values Added |
---|---|---|
Metrics |
ssvc
|
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
Vulnrichment
Updated: 2024-08-04T05:17:43.104Z
NVD
Status : Awaiting Analysis
Published: 2024-02-27T19:04:07.500
Modified: 2024-02-28T14:06:45.783
Link: CVE-2021-46974
Redhat