{"id":"CVE-2021-46974","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix masking negation logic upon negative dst register\n\nThe negation logic for the case where the off_reg is sitting in the\ndst register is not correct given then we cannot just invert the add\nto a sub or vice versa. As a fix, perform the final bitwise and-op\nunconditionally into AX from the off_reg, then move the pointer from\nthe src to dst and finally use AX as the source for the original\npointer arithmetic operation such that the inversion yields a correct\nresult. The single non-AX mov in between is possible given constant\nblinding is retaining it as it's not an immediate based operation.","modified":"2026-03-13T05:17:58.246824Z","published":"2024-02-27T19:04:07.500Z","related":["SUSE-SU-2024:0856-1","SUSE-SU-2024:0857-1","SUSE-SU-2024:0925-1","SUSE-SU-2024:0926-1","SUSE-SU-2024:0975-1","SUSE-SU-2024:0976-1"],"references":[{"type":"FIX","url":"https://git.kernel.org/stable/c/0e2dfdc74a7f4036127356d42ea59388f153f42c"},{"type":"FIX","url":"https://git.kernel.org/stable/c/2cfa537674cd1051a3b8111536d77d0558f33d5d"},{"type":"FIX","url":"https://git.kernel.org/stable/c/4d542ddb88fb2f39bf7f14caa2902f3e8d06f6ba"},{"type":"FIX","url":"https://git.kernel.org/stable/c/53e0db429b37a32b8fc706d0d90eb4583ad13848"},{"type":"FIX","url":"https://git.kernel.org/stable/c/6eba92a4d4be8feb4dc33976abac544fa99d6ecc"},{"type":"FIX","url":"https://git.kernel.org/stable/c/7cf64d8679ca1cb20cf57d6a88bfee79a0922a66"},{"type":"FIX","url":"https://git.kernel.org/stable/c/b9b34ddbe2076ade359cd5ce7537d5ed019e9807"}],"affected":[{"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-46974.json","unresolved_ranges":[{"events":[{"introduced":"4.14.113"},{"fixed":"4.14.233"}]},{"events":[{"introduced":"4.19.19"},{"fixed":"4.19.190"}]},{"events":[{"introduced":"5.0"},{"fixed":"5.4.117"}]},{"events":[{"introduced":"5.5"},{"fixed":"5.10.35"}]},{"events":[{"introduced":"5.11"},{"fixed":"5.11.19"}]},{"events":[{"introduced":"5.12"},{"fixed":"5.12.2"}]}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}