CVE-2022-48643

Source
https://cve.org/CVERecord?id=CVE-2022-48643
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-48643.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-48643
Downstream
Published
2024-04-28T13:00:03.181Z
Modified
2026-05-15T11:54:06.369913899Z
Summary
netfilter: nf_tables: fix nft_counters_enabled underflow at nf_tables_addchain()
Details

In the Linux kernel, the following vulnerability has been resolved:

netfilter: nftables: fix nftcountersenabled underflow at nftables_addchain()

syzbot is reporting underflow of nftcountersenabled counter at nftablesaddchain() [1], for commit 43eb8949cfdffa76 ("netfilter: nftables: do not leave chain stats enabled on error") missed that nftableschaindestroy() after nftbasechaininit() in the error path of nftablesaddchain() decrements the counter because nftbasechaininit() makes nftisbasechain() return true by setting NFTCHAIN_BASE flag.

Increment the counter immediately after returning from nftbasechaininit().

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48643.json"
}
References

Affected packages

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.10.140
Fixed
5.10.146
Type
ECOSYSTEM
Events
Introduced
5.15.64
Fixed
5.15.71
Type
ECOSYSTEM
Events
Introduced
5.19.6
Fixed
5.19.12

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-48643.json"