# CVE-2022-48742: rtnetlink: make sure to refresh master_dev/m_ops in __rtnl_newlink()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-06-20T11:13:26.653Z
- Modified: 2026-08-05T08:52:04.588Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from ba7d49b1f0f8e5f24294a880ed576964059af5ef before 2cf180360d66bd657e606c1217e0e668e6faa303; from ba7d49b1f0f8e5f24294a880ed576964059af5ef before 7d9211678c0f0624f74cdff36117ab8316697bb8; from ba7d49b1f0f8e5f24294a880ed576964059af5ef before a01e60a1ec6bef9be471fb7182a33c6d6f124e93; from ba7d49b1f0f8e5f24294a880ed576964059af5ef before bd43771ee9759dd9dfae946bff190e2c5a120de5; from ba7d49b1f0f8e5f24294a880ed576964059af5ef before 3bbe2019dd12b8d13671ee6cda055d49637b4c39; from ba7d49b1f0f8e5f24294a880ed576964059af5ef before def5e7070079b2a214b3b1a2fbec623e6fbfe34a; from ba7d49b1f0f8e5f24294a880ed576964059af5ef before 36a9a0aee881940476b254e0352581401b23f210; from ba7d49b1f0f8e5f24294a880ed576964059af5ef before c6f6f2444bdbe0079e41914a35081530d0409963; 3.14 (not affected: before 3.14; from 4.9.300 up to 4.9.*; from 4.14.265 up to 4.14.*; from 4.19.228 up to 4.19.*; from 5.4.177 up to 5.4.*; from 5.10.97 up to 5.10.*; from 5.15.20 up to 5.15.*; from 5.16.6 up to 5.16.*; from 5.17 up to *)
- linux linux_kernel: from 3.14 before 4.9.300; from 4.10 before 4.14.265; from 4.15 before 4.19.228; from 4.20 before 5.4.177; from 5.5 before 5.10.97; from 5.11 before 5.15.20; from 5.16 before 5.16.6

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/2cf180360d66bd657e606c1217e0e668e6faa303> (mailing-list, patch)
- <https://git.kernel.org/stable/c/7d9211678c0f0624f74cdff36117ab8316697bb8> (mailing-list, patch)
- <https://git.kernel.org/stable/c/a01e60a1ec6bef9be471fb7182a33c6d6f124e93> (mailing-list, patch)
- <https://git.kernel.org/stable/c/bd43771ee9759dd9dfae946bff190e2c5a120de5> (mailing-list, patch)
- <https://git.kernel.org/stable/c/3bbe2019dd12b8d13671ee6cda055d49637b4c39> (mailing-list, patch)
- <https://git.kernel.org/stable/c/def5e7070079b2a214b3b1a2fbec623e6fbfe34a> (mailing-list, patch)
- <https://git.kernel.org/stable/c/36a9a0aee881940476b254e0352581401b23f210> (mailing-list, patch)
- <https://git.kernel.org/stable/c/c6f6f2444bdbe0079e41914a35081530d0409963> (mailing-list, patch)

## Sources

- CVE List: [CVE-2022-48742](https://www.cve.org/CVERecord?id=CVE-2022-48742), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2022-48742](https://nvd.nist.gov/vuln/detail/CVE-2022-48742), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2022-48742 · Whole record: https://cve.day/CVE-2022-48742.json · Rebuilt by cve.day 2026-11-25T22:58:19.845Z
