Bug 2269831 (CVE-2021-47128)

Summary: CVE-2021-47128 kernel: bpf, lockdown, audit: Fix buggy SELinux lockdown permission checks
Product: [Other] Security Response Reporter: Avinash Hanwate <ahanwate>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: acaringi, allarkin, aquini, bhu, chwhite, dbohanno, debarbos, dfreiber, drow, dvlasenk, esandeen, ezulian, hkrzesin, jarod, jburrell, jfaracco, jforbes, jlelli, joe.lawrence, jshortt, jstancek, jwyatt, ldoskova, lgoncalv, mleitner, mmilgram, mstowell, nmurray, ptalbert, rparrazo, rrobaina, rvrbovsk, scweaver, sidakwo, sukulkar, tglozar, vkumar, wcosta, williams, wmealing, ycote, ykopkova
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel 5.10.43, kernel 5.12.10, kernel 5.13 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2269833    
Bug Blocks: 2269857    

Description Avinash Hanwate 2024-03-16 17:57:42 UTC
In the Linux kernel, the following vulnerability has been resolved:

bpf, lockdown, audit: Fix buggy SELinux lockdown permission checks

The Linux kernel CVE team has assigned CVE-2021-47128 to this issue.

Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024031512-CVE-2021-47128-bef7@gregkh/T/#u

Comment 1 Avinash Hanwate 2024-03-16 17:58:18 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2269833]

Comment 5 Justin M. Forbes 2024-03-26 16:27:09 UTC
This was fixed for Fedora with the 5.12.10 stable kernel updates.

Comment 8 Artem Savkov 2024-04-22 07:13:42 UTC
Hi Alex,

It is not present. The two hits you got from grep just mention it.

First is 9c0ebe52fbe56 ("[security] audit: purge audit_log_string from the intra-kernel audit API"), where 59438b46471a is mentioned as missing in a "Conflict" explanation:
>    Conflicts:
>      - commit 59438b46471a ("security,lockdown,selinux: implement SELinux lockdown")
>        from v5.6-rc1, not backported, omos: would break things, class not  in policy yet

The second is 6b146f48fbdbf ("[security] security: only build lsm_audit if CONFIG_SECURITY=y"). It has 59438b46471a included in "Fixes" tag, but that doesn't mean 59438b46471a is in the tree.

Comment 9 Alex 2024-06-09 16:33:27 UTC
The result of automatic check (that is developed by Alexander Larkin) for this CVE-2021-47128 is: CHECK	Maybe valid. Check manually. with impact LOW (that is an approximation based on flags DEADLOCK BPF IMPROVEONLY  ; 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.