CVE-2022-49127
published high CVSS 3.1 · 7.0ref_tracker: implement use-after-free detection
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux4e66934eaadc83b27ada8d42b60894018f3bfabf to < 3743c9de303fa36c2e2ca2522ab280c52bcafbd2 · 4e66934eaadc83b27ada8d42b60894018f3bfabf to < e3ececfe668facd87d920b608349a32607060e66 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.17 (affected) · 0 to < 5.17 (unaffected · semver) · 5.17.3 through 5.17.* (unaffected · semver) · 5.18 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: ref_tracker: implement use-after-free detection Whenever ref_tracker_dir_init() is called, mark the struct ref_tracker_dir as dead. Test the dead status from ref_tracker_alloc() and ref_tracker_free() This should detect buggy dev_put()/dev_hold() happening too late in netdevice dismantle process.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.0 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The ref_tracker path is reached through local netdev/netns lifecycle operations (netdev_hold/put during device or namespace teardown via netlink/syscalls), not by parsing attacker-controlled remote packets. AC:H - The vulnerable code exists only when CONFIG_NET_DEV_REFCNT_TRACKER or CONFIG_NET_NS_REFCNT_TRACKER is enabled (default n, DEBUG_KERNEL-only); without that rare debug config the tracker ops are compiled out as stubs. PR:L - An unprivileged user can obtain CAP_NET_ADMIN via user namespaces (unshare -Urn), create/destroy netdevs and network namespaces, and drive dismantle paths that exercise the tracker. UI:N - The attacker can create and tear down their own network devices/namespaces and trigger late hold/put paths without any victim action. S:U - Impact stays within the local kernel’s networking reference-tracking state; there is no VM escape, IOMMU bypass, or other cross-authority boundary crossing. C:H - Use-after-free of heap-allocated struct ref_tracker objects after dir_exit frees them can be leveraged for arbitrary kernel memory disclosure via heap reuse. I:H - The same UAF enables heap spraying and corruption of reused tracker/list metadata, which can yield arbitrary write or control-flow hijacking primitives. A:H - UAF of freed trackers and the WARN_ON_ONCE path can oops/panic the kernel (including under panic_on_warn), causing a full availability loss.
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.8 | high | CISA-ADP · adp | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 4e66934eaadc83b27ada8d42b60894018f3bfabf to < 3743c9de303fa36c2e2ca2522ab280c52bcafbd2 (affected · git)4e66934eaadc83b27ada8d42b60894018f3bfabf to < e3ececfe668facd87d920b608349a32607060e66 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.17 (affected)0 to < 5.17 (unaffected · semver)5.17.3 through 5.17.* (unaffected · semver)5.18 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
1- CWE-416 CWE-416 Use After Free
References
2Provider assertions
2Linux · cna
ref_tracker: implement use-after-free detection
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 502d53c5f61ebe7fab34ea759fd6420d0959ff3739818b5cc2684344504b9540
- Ingested
- 23 Sep 2026, 08:04:03 UTC
- Source record
- Official CVE record