# CVE-2022-48974: netfilter: conntrack: fix using \_\_this\_cpu\_add in preemptible

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.26% (percentile 11, 2026-11-26)
- **Published:** 2024-10-21T20:05:54.438Z
- **Modified:** 2026-06-17T05:16:45.240Z

## Who should check

- Anyone running Linux \>= c56716c69ce1ac320432fb1ea5654196ba24d2f8, \< d9bf1138a5db419db13bd9fcd3a7178d6bb20f7c; \>= c56716c69ce1ac320432fb1ea5654196ba24d2f8, \< 9464d0b68f11a9bc768370c3260ec02b3550447b
- Anyone running Linux 5.19

## Description

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

netfilter: conntrack: fix using \_\_this\_cpu\_add in preemptible

Currently in nf\_conntrack\_hash\_check\_insert(), when it fails in
nf\_ct\_ext\_valid\_pre/post(), NF\_CT\_STAT\_INC() will be called in the
preemptible context, a call trace can be triggered:

   BUG: using \_\_this\_cpu\_add() in preemptible \[00000000\] code: conntrack/1636
   caller is nf\_conntrack\_hash\_check\_insert+0x45/0x430 \[nf\_conntrack\]
   Call Trace:
    \<TASK\>
    dump\_stack\_lvl+0x33/0x46
    check\_preemption\_disabled+0xc3/0xf0
    nf\_conntrack\_hash\_check\_insert+0x45/0x430 \[nf\_conntrack\]
    ctnetlink\_create\_conntrack+0x3cd/0x4e0 \[nf\_conntrack\_netlink\]
    ctnetlink\_new\_conntrack+0x1c0/0x450 \[nf\_conntrack\_netlink\]
    nfnetlink\_rcv\_msg+0x277/0x2f0 \[nfnetlink\]
    netlink\_rcv\_skb+0x50/0x100
    nfnetlink\_rcv+0x65/0x144 \[nfnetlink\]
    netlink\_unicast+0x1ae/0x290
    netlink\_sendmsg+0x257/0x4f0
    sock\_sendmsg+0x5f/0x70

This patch is to fix it by changing to use NF\_CT\_STAT\_INC\_ATOMIC() for
nf\_ct\_ext\_valid\_pre/post() check in nf\_conntrack\_hash\_check\_insert(),
as well as nf\_ct\_ext\_valid\_post() in \_\_nf\_conntrack\_confirm().

Note that nf\_ct\_ext\_valid\_pre() check in \_\_nf\_conntrack\_confirm() is
safe to use NF\_CT\_STAT\_INC(), as it's under local\_bh\_disable().

## Affected and fixed versions

- Linux: \>= c56716c69ce1ac320432fb1ea5654196ba24d2f8, \< d9bf1138a5db419db13bd9fcd3a7178d6bb20f7c; \>= c56716c69ce1ac320432fb1ea5654196ba24d2f8, \< 9464d0b68f11a9bc768370c3260ec02b3550447b (cvelist)
- Linux: 5.19 (cvelist)

## Mitigation

- Upgrade Linux to 9464d0b68f11a9bc768370c3260ec02b3550447b or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-48974. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-48974.md
Affected: Linux >= c56716c69ce1ac320432fb1ea5654196ba24d2f8, < d9bf1138a5db419db13bd9fcd3a7178d6bb20f7c; >= c56716c69ce1ac320432fb1ea5654196ba24d2f8, < 9464d0b68f11a9bc768370c3260ec02b3550447b; Linux 5.19
Fixed in: Linux 9464d0b68f11a9bc768370c3260ec02b3550447b

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-48974 being exploited?

There is no confirmed exploitation: CVE-2022-48974 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-48974?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-48974?

Linux \>= c56716c69ce1ac320432fb1ea5654196ba24d2f8, \< d9bf1138a5db419db13bd9fcd3a7178d6bb20f7c; \>= c56716c69ce1ac320432fb1ea5654196ba24d2f8, \< 9464d0b68f11a9bc768370c3260ec02b3550447b; Linux 5.19.

### Is there a fix for CVE-2022-48974?

Yes. Fixed in Linux 9464d0b68f11a9bc768370c3260ec02b3550447b. Upgrade Linux to 9464d0b68f11a9bc768370c3260ec02b3550447b or later.

### How do I check if I'm affected by CVE-2022-48974?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/d9bf1138a5db419db13bd9fcd3a7178d6bb20f7c>
- patch: <https://git.kernel.org/stable/c/9464d0b68f11a9bc768370c3260ec02b3550447b>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-48974>

HTML: <https://flawdb.com/CVE-2022-48974> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-48974>
