Bug 2277820 (CVE-2022-48643)

Summary: CVE-2022-48643 kernel: netfilter: nf_tables: fix nft_counters_enabled underflow at nf_tables_addchain()
Product: [Other] Security Response Reporter: Zack Miele <zmiele>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: acaringi, allarkin, aquini, bhu, chwhite, cye, cyin, dbohanno, debarbos, dfreiber, drow, dvlasenk, esandeen, ezulian, hkrzesin, jarod, jburrell, jdenham, jfaracco, jlelli, joe.lawrence, jshortt, jstancek, jwyatt, kcarcia, ldoskova, lgoncalv, lzampier, mleitner, mmilgram, mstowell, nmurray, psutter, ptalbert, rparrazo, rrobaina, rvrbovsk, rysulliv, scweaver, sidakwo, sukulkar, tglozar, tyberry, vkumar, wcosta, williams, wmealing, ycote, ykopkova, zhijwang
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel 5.10.146, kernel 5.15.71, kernel 5.19.12 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:    
Bug Blocks: 2277879    

Description Zack Miele 2024-04-29 16:09:46 UTC
In the Linux kernel, the following vulnerability has been resolved:

netfilter: nf_tables: fix nft_counters_enabled underflow at nf_tables_addchain()

The Linux kernel CVE team has assigned CVE-2022-48643 to this issue.

Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024042856-CVE-2022-48643-7d4b@gregkh/T

Comment 4 Alex 2024-06-09 16:29:13 UTC
The result of automatic check (that is developed by Alexander Larkin) for this CVE-2022-48643 is: CHECK	Maybe valid. Check manually. with impact LOW (that is an approximation based on flags REMOTE SIMPLEFIX NETFILTER 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.

Comment 5 Phil Sutter 2024-06-21 22:23:51 UTC
The CVE lists stable tree commits. The respective commit messages contain the vanilla hashes:
Introduced by: 43eb8949cfdffa764b92bc6c54b87cbe5b0003fe
Fixed by: 921ebde3c0d22c8cba74ce8eb3cc4626abff1ccd

% kerneloscope downstream 43eb8949cfdffa764b92bc6c54b87cbe5b0003fe
094f65f12afd (in rhel-9.2, rhel-9.3, rhel-9.4, rhel-9.5) netfilter: nf_tables: do not leave chain stats enabled on error
a2a7d466d11a (in rhel-8.8, rhel-8.9, rhel-8.10) netfilter: nf_tables: do not leave chain stats enabled on error
23e30c3c6018 (in rhel-9.0) netfilter: nf_tables: do not leave chain stats enabled on error

% kerneloscope downstream 921ebde3c0d22c8cba74ce8eb3cc4626abff1ccd
722207ec262d (in rhel-9.2, rhel-9.3, rhel-9.4, rhel-9.5) netfilter: nf_tables: fix nft_counters_enabled underflow at nf_tables_addchain()
fd9405ba00ce (in rhel-8.8, rhel-8.9, rhel-8.10) netfilter: nf_tables: fix nft_counters_enabled underflow at nf_tables_addchain()
dee89f3a5ae7 (in rhel-9.0) netfilter: nf_tables: fix nft_counters_enabled underflow at nf_tables_addchain()

All streams which have the problematic backport also do have the fix already. Please close all issues opened on behalf of this.