CVE-2022-48742

rtnetlink: make sure to refresh master_dev/m_ops in __rtnl_newlink()

HIGH
7.8
CVSS Score
Published: June 20, 2024 at 11:13 AM UTC
Updated: August 5, 2026 at 09:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: rtnetlink: make sure to refresh master_dev/m_ops in __rtnl_newlink() While looking at one unrelated syzbot bug, I found the replay logic in __rtnl_newlink() to potentially trigger use-after-free. It is better to clear master_dev and m_ops inside the loop, in case we have to replay it.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

3.14 ≤ v < 4.14.2653.14 ≤ v < 4.19.2283.14 ≤ v < 4.9.3003.14 ≤ v < 5.10.973.14 ≤ v < 5.15.203.14 ≤ v < 5.16.63.14 ≤ v < 5.173.14 ≤ v < 5.4.1774.10 ≤ v < 4.14.2654.15 ≤ v < 4.19.2284.20 ≤ v < 5.4.1775.11 ≤ v < 5.15.205.16 ≤ v < 5.16.65.5 ≤ v < 5.10.973.14ba7d49b1f0f8e5f24294a880ed576964059af5ef
Vendor states this is fixed in 2cf180360d66bd657e606c1217e0e668e6faa303 (fixed)
Vendor states this is fixed in 36a9a0aee881940476b254e0352581401b23f210 (fixed)
Vendor states this is fixed in 3bbe2019dd12b8d13671ee6cda055d49637b4c39 (fixed)
Vendor states this is fixed in 7d9211678c0f0624f74cdff36117ab8316697bb8 (fixed)
Vendor states this is fixed in a01e60a1ec6bef9be471fb7182a33c6d6f124e93 (fixed)
Vendor states this is fixed in bd43771ee9759dd9dfae946bff190e2c5a120de5 (fixed)
Vendor states this is fixed in c6f6f2444bdbe0079e41914a35081530d0409963 (fixed)
Vendor states this is fixed in def5e7070079b2a214b3b1a2fbec623e6fbfe34a (fixed)
Vendor states this is fixed in 3.14 (unaffected)
Vendor states this is fixed in 4.14.265 (unaffected)
Vendor states this is fixed in 4.19.228 (unaffected)
Vendor states this is fixed in 4.9.300 (unaffected)
Vendor states this is fixed in 5.10.97 (unaffected)
Vendor states this is fixed in 5.15.20 (unaffected)
Vendor states this is fixed in 5.16.6 (unaffected)
Vendor states this is fixed in 5.17 (unaffected)
Vendor states this is fixed in 5.4.177 (unaffected)

References (8)

Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2cf180360d66bd657e606c1217e0e668e6faa303
Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/36a9a0aee881940476b254e0352581401b23f210
Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3bbe2019dd12b8d13671ee6cda055d49637b4c39
Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7d9211678c0f0624f74cdff36117ab8316697bb8
Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a01e60a1ec6bef9be471fb7182a33c6d6f124e93
Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/bd43771ee9759dd9dfae946bff190e2c5a120de5
Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c6f6f2444bdbe0079e41914a35081530d0409963
Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/def5e7070079b2a214b3b1a2fbec623e6fbfe34a

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card