CVE-2022-48974: netfilter: conntrack: fix using __this_cpu_add in preemptible

Published Oct 21, 2024
·
Updated

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

netfilter: conntrack: fix using thiscpuadd in preemptible

Currently in nfconntrackhashcheckinsert(), when it fails in nfctextvalidpre/post(), NFCTSTATINC() will be called in the preemptible context, a call trace can be triggered:

BUG: using thiscpuadd() in preemptible [00000000] code: conntrack/1636 caller is nfconntrackhashcheckinsert+0x45/0x430 [nfconntrack] Call Trace: <TASK> dumpstacklvl+0x33/0x46 checkpreemptiondisabled+0xc3/0xf0 nfconntrackhashcheckinsert+0x45/0x430 [nfconntrack] ctnetlinkcreateconntrack+0x3cd/0x4e0 [nfconntracknetlink] ctnetlinknewconntrack+0x1c0/0x450 [nfconntracknetlink] nfnetlinkrcvmsg+0x277/0x2f0 [nfnetlink] netlinkrcvskb+0x50/0x100 nfnetlinkrcv+0x65/0x144 [nfnetlink] netlinkunicast+0x1ae/0x290 netlinksendmsg+0x257/0x4f0 socksendmsg+0x5f/0x70

This patch is to fix it by changing to use NFCTSTATINCATOMIC() for nfctextvalidpre/post() check in nfconntrackhashcheckinsert(), as well as nfctextvalidpost() in nfconntrackconfirm().

Note that nfctextvalidpre() check in nfconntrackconfirm() is safe to use NFCTSTATINC(), as it's under localbhdisable().

Affected Software

9 affected components
Linux Linux kernel>=5.19<6.0.13
Linux Linux kernel=6.1-rc1
Linux Linux kernel=6.1-rc2
Linux Linux kernel=6.1-rc3
Linux Linux kernel=6.1-rc4
Linux Linux kernel=6.1-rc5
Linux Linux kernel=6.1-rc6
Linux Linux kernel=6.1-rc7
Linux Linux kernel=6.1-rc8

Event History

Oct 21, 2024
CVE Published
via MITRE·08:05 PM
Data Sourced
via MITRE·08:05 PM
Description
Data Sourced
via NVD·08:15 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2022-48974?

The CVE-2022-48974 vulnerability is classified as medium severity.

2

How do I fix CVE-2022-48974?

To resolve CVE-2022-48974, you should update your Linux kernel to version 6.0.13 or later.

3

Which versions of Linux are affected by CVE-2022-48974?

CVE-2022-48974 affects the Linux kernel versions from 5.19 up to 6.0.13, as well as various 6.1 release candidates.

4

Is CVE-2022-48974 a remote exploit?

CVE-2022-48974 is not primarily a remote exploit but can be exploited in a local context due to its nature.

5

What components are involved in the CVE-2022-48974 vulnerability?

The vulnerability involves the netfilter conntrack component in the Linux kernel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203