In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_tables: Fix dereference of null pointer flow The Linux kernel CVE team has assigned CVE-2021-47312 to this issue. Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024052129-CVE-2021-47312-682b@gregkh/T
Quoting the upstream CVE report: Issue introduced in 5.13.2 with commit 09b1f676e2e0 and fixed in 5.13.5 with commit 70a5a1950cca Note how these are stable branch commit hashes. Their description lists the vanilla hashes: % git log -1 09b1f676e2e0 | grep -i upstream [ Upstream commit 3c5e44622011b9ea21bd425875dcccfc9a158f5f ] % git log -1 70a5a1950cca | grep -i upstream commit 4ca041f919f13783b0b03894783deee00dbca19a upstream. Checking the vanilla fix hash reveals it has been backported to RHEL8 already: % kerneloscope downstream 4ca041f919f13783b0b03894783deee00dbca19a 4edd97432a05 (in rhel-8.5, rhel-8.6, rhel-8.7, rhel-8.8, rhel-8.9, rhel-8.10) netfilter: nf_tables: Fix dereference of null pointer flow Also, the hash is part of upstream's v5.14 tag so none of RHEL9/C9S is affected.
The faulty commit (vanilla hash 4ca041f919f1378) has been backported to only those RHEL8 trees which are listed above as having the fix as well: % kerneloscope downstream 4ca041f919f13783b0b03894783deee00dbca19a 4edd97432a05 (in rhel-8.5, rhel-8.6, rhel-8.7, rhel-8.8, rhel-8.9, rhel-8.10) netfilter: nf_tables: Fix dereference of null pointer flow Ergo, none of RHEL8 is affected either.
The result of automatic check (that is developed by Alexander Larkin) for this CVE-2021-47312 is: CHECK Maybe valid. Check manually. with impact LOW (that is an approximation based on flags REMOTE NULLPTR SIMPLEFIX NETFILTER LEAK ERRORPATH ; these flags parsed automatically based on patch data). Such automatic check happens only for Low/Moderates (and only when not from reporter, but parsing already existing CVE). Highs always checked manually (I check it myself and then we check it again in Remediation team). In rare cases some of the Moderates could be increased to High later.