Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-38542

published high CVSS 3.1 · 7.8

net: appletalk: Fix device refcount leak in atrtr_create()

Published
16 Aug 2025, 11:22:16 UTC
Updated
05 Aug 2026, 12:02:46 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxc7f905f0f6d49ed8c1aa4566c31f0383a0ba0c9d to < b92bedf71f25303e203a4e657489d76691a58119 · c7f905f0f6d49ed8c1aa4566c31f0383a0ba0c9d to < a7852b01793669248dce0348d14df89e77a32afd · c7f905f0f6d49ed8c1aa4566c31f0383a0ba0c9d to < b2f5dfa87367fdce9f8b995bc6c38f64f9ea2c90 · c7f905f0f6d49ed8c1aa4566c31f0383a0ba0c9d to < d2e9f50f0bdad73b64a871f25186b899624518c4 · c7f905f0f6d49ed8c1aa4566c31f0383a0ba0c9d to < 4a17370da6e476d3d275534e9e9cd2d02c57ca46 · c7f905f0f6d49ed8c1aa4566c31f0383a0ba0c9d to < 473f3eadfc73b0fb6d8dee5829d19a5772e387f7 · c7f905f0f6d49ed8c1aa4566c31f0383a0ba0c9d to < 64124cf0aab0dd1e18c0fb5ae66e45741e727f8b · c7f905f0f6d49ed8c1aa4566c31f0383a0ba0c9d to < 711c80f7d8b163d3ecd463cd96f07230f488e750 · Other versions: unaffected Affected Not stated Linux
Linux — Linux2.6.12 (affected) · 0 to < 2.6.12 (unaffected · semver) · 5.4.296 through 5.4.* (unaffected · semver) · 5.10.240 through 5.10.* (unaffected · semver) · 5.15.189 through 5.15.* (unaffected · semver) · 6.1.146 through 6.1.* (unaffected · semver) · 6.6.99 through 6.6.* (unaffected · semver) · 6.12.39 through 6.12.* (unaffected · semver) · 6.15.7 through 6.15.* (unaffected · semver) · 6.16 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected; No Fix Planned Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Debian bullseye linux Advisory build 5.10.244-1 DLA-4327-1
Oracle Linux 7 kernel-uekx86_64 Advisory build 0:5.4.17-2136.348.3.el7uek ELSA-2025-20663
Ubuntu focal linux-aws-5.15 Advisory build 5.15.0-1092.99~20.04.1 USN-7774-1
Debian bullseye linux-6.1 Advisory build 6.1.153-1~deb11u1 DLA-4328-1
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Oracle Linux 7 kernel-uek-containerx86_64 Advisory build 0:5.4.17-2136.348.3.el7uek ELSA-2025-20663
Oracle Linux 7 kernel-uek-container-debugx86_64 Advisory build 0:5.4.17-2136.348.3.el7uek ELSA-2025-20663
Oracle Linux 7 kernel-uek-debugx86_64 Advisory build 0:5.4.17-2136.348.3.el7uek ELSA-2025-20663
Oracle Linux 7 kernel-uek-debug-develx86_64 Advisory build 0:5.4.17-2136.348.3.el7uek ELSA-2025-20663
Oracle Linux 7 kernel-uek-develx86_64 Advisory build 0:5.4.17-2136.348.3.el7uek ELSA-2025-20663
Oracle Linux 7 kernel-uek-docx86_64 Advisory build 0:5.4.17-2136.348.3.el7uek ELSA-2025-20663
Oracle Linux 7 kernel-uek-toolsx86_64 Advisory build 0:5.4.17-2136.348.3.el7uek ELSA-2025-20663
Oracle Linux 8 kernel-uekaarch64 Advisory build 0:5.4.17-2136.348.3.el8uek ELSA-2025-20663
Oracle Linux 8 kernel-uekx86_64 Advisory build 0:5.4.17-2136.348.3.el8uek ELSA-2025-20663
Oracle Linux 8 kernel-uek-containerx86_64 Advisory build 0:5.4.17-2136.348.3.el8uek ELSA-2025-20663
Oracle Linux 8 kernel-uek-container-debugx86_64 Advisory build 0:5.4.17-2136.348.3.el8uek ELSA-2025-20663
Oracle Linux 8 kernel-uek-debugaarch64 Advisory build 0:5.4.17-2136.348.3.el8uek ELSA-2025-20663
Oracle Linux 8 kernel-uek-debugx86_64 Advisory build 0:5.4.17-2136.348.3.el8uek ELSA-2025-20663
Oracle Linux 8 kernel-uek-debug-develaarch64 Advisory build 0:5.4.17-2136.348.3.el8uek ELSA-2025-20663
Oracle Linux 8 kernel-uek-debug-develx86_64 Advisory build 0:5.4.17-2136.348.3.el8uek ELSA-2025-20663
Oracle Linux 8 kernel-uek-develaarch64 Advisory build 0:5.4.17-2136.348.3.el8uek ELSA-2025-20663
Oracle Linux 8 kernel-uek-develx86_64 Advisory build 0:5.4.17-2136.348.3.el8uek ELSA-2025-20663
Oracle Linux 8 kernel-uek-docaarch64 Advisory build 0:5.4.17-2136.348.3.el8uek ELSA-2025-20663
Oracle Linux 8 kernel-uek-docx86_64 Advisory build 0:5.4.17-2136.348.3.el8uek ELSA-2025-20663
Ubuntu focal linux-aws-5.15-cloud-tools-5.15.0-1092 Advisory build 5.15.0-1092.99~20.04.1 USN-7774-1
Ubuntu focal linux-aws-5.15-headers-5.15.0-1092 Advisory build 5.15.0-1092.99~20.04.1 USN-7774-1
Ubuntu focal linux-aws-5.15-tools-5.15.0-1092 Advisory build 5.15.0-1092.99~20.04.1 USN-7774-1
Ubuntu focal linux-azure-5.15 Advisory build 5.15.0-1096.105~20.04.1 USN-7775-3
Ubuntu focal linux-azure-5.15-cloud-tools-5.15.0-1096 Advisory build 5.15.0-1096.105~20.04.1 USN-7775-3
Ubuntu focal linux-azure-5.15-headers-5.15.0-1096 Advisory build 5.15.0-1096.105~20.04.1 USN-7775-3
Ubuntu focal linux-azure-5.15-tools-5.15.0-1096 Advisory build 5.15.0-1096.105~20.04.1 USN-7775-3
Ubuntu focal linux-buildinfo-5.15.0-1045-nvidia-tegra Advisory build 5.15.0-1045.45~20.04.1 USN-7774-1
Ubuntu focal linux-buildinfo-5.15.0-1045-nvidia-tegra-rt Advisory build 5.15.0-1045.45~20.04.1 USN-7774-1
Ubuntu focal linux-buildinfo-5.15.0-1086-ibm Advisory build 5.15.0-1086.89~20.04.1 USN-7774-1
Ubuntu focal linux-buildinfo-5.15.0-1087-intel-iotg Advisory build 5.15.0-1087.93~20.04.1 USN-7774-1
Ubuntu focal linux-buildinfo-5.15.0-1090-oracle Advisory build 5.15.0-1090.96~20.04.1 USN-7776-1
Ubuntu focal linux-buildinfo-5.15.0-1092-aws Advisory build 5.15.0-1092.99~20.04.1 USN-7774-1
Ubuntu focal linux-buildinfo-5.15.0-1092-gcp Advisory build 5.15.0-1092.101~20.04.1 USN-7774-1
Ubuntu focal linux-buildinfo-5.15.0-1096-azure Advisory build 5.15.0-1096.105~20.04.1 USN-7775-3
Ubuntu focal linux-buildinfo-5.15.0-156-generic Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-buildinfo-5.15.0-156-generic-64k Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-buildinfo-5.15.0-156-generic-lpae Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-buildinfo-5.15.0-156-lowlatency Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-buildinfo-5.15.0-156-lowlatency-64k Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-cloud-tools-5.15.0-1087-intel-iotg Advisory build 5.15.0-1087.93~20.04.1 USN-7774-1
Ubuntu focal linux-cloud-tools-5.15.0-1092-aws Advisory build 5.15.0-1092.99~20.04.1 USN-7774-1
Ubuntu focal linux-cloud-tools-5.15.0-1096-azure Advisory build 5.15.0-1096.105~20.04.1 USN-7775-3
Ubuntu focal linux-cloud-tools-5.15.0-156-generic Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-cloud-tools-5.15.0-156-lowlatency Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-gcp-5.15 Advisory build 5.15.0-1092.101~20.04.1 USN-7774-1
Ubuntu focal linux-gcp-5.15-headers-5.15.0-1092 Advisory build 5.15.0-1092.101~20.04.1 USN-7774-1
Ubuntu focal linux-gcp-5.15-tools-5.15.0-1092 Advisory build 5.15.0-1092.101~20.04.1 USN-7774-1
Ubuntu focal linux-headers-5.15.0-1045-nvidia-tegra Advisory build 5.15.0-1045.45~20.04.1 USN-7774-1
Ubuntu focal linux-headers-5.15.0-1045-nvidia-tegra-rt Advisory build 5.15.0-1045.45~20.04.1 USN-7774-1
Ubuntu focal linux-headers-5.15.0-1086-ibm Advisory build 5.15.0-1086.89~20.04.1 USN-7774-1
Ubuntu focal linux-headers-5.15.0-1087-intel-iotg Advisory build 5.15.0-1087.93~20.04.1 USN-7774-1
Ubuntu focal linux-headers-5.15.0-1090-oracle Advisory build 5.15.0-1090.96~20.04.1 USN-7776-1
Ubuntu focal linux-headers-5.15.0-1092-aws Advisory build 5.15.0-1092.99~20.04.1 USN-7774-1
Ubuntu focal linux-headers-5.15.0-1092-gcp Advisory build 5.15.0-1092.101~20.04.1 USN-7774-1
Ubuntu focal linux-headers-5.15.0-1096-azure Advisory build 5.15.0-1096.105~20.04.1 USN-7775-3
Ubuntu focal linux-headers-5.15.0-156-generic Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-headers-5.15.0-156-generic-64k Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-headers-5.15.0-156-generic-lpae Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-headers-5.15.0-156-lowlatency Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-headers-5.15.0-156-lowlatency-64k Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-hwe-5.15 Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-hwe-5.15-cloud-tools-5.15.0-156 Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-hwe-5.15-headers-5.15.0-156 Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-hwe-5.15-tools-5.15.0-156 Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-ibm-5.15 Advisory build 5.15.0-1086.89~20.04.1 USN-7774-1
Ubuntu focal linux-ibm-5.15-headers-5.15.0-1086 Advisory build 5.15.0-1086.89~20.04.1 USN-7774-1
Ubuntu focal linux-ibm-5.15-source-5.15.0 Advisory build 5.15.0-1086.89~20.04.1 USN-7774-1
Ubuntu focal linux-ibm-5.15-tools-5.15.0-1086 Advisory build 5.15.0-1086.89~20.04.1 USN-7774-1
Ubuntu focal linux-image-5.15.0-156-generic Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-image-5.15.0-156-generic-lpae Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-image-unsigned-5.15.0-1045-nvidia-tegra Advisory build 5.15.0-1045.45~20.04.1 USN-7774-1
Ubuntu focal linux-image-unsigned-5.15.0-1045-nvidia-tegra-rt Advisory build 5.15.0-1045.45~20.04.1 USN-7774-1
Ubuntu focal linux-image-unsigned-5.15.0-1086-ibm Advisory build 5.15.0-1086.89~20.04.1 USN-7774-1
Ubuntu focal linux-image-unsigned-5.15.0-1087-intel-iotg Advisory build 5.15.0-1087.93~20.04.1 USN-7774-1
Ubuntu focal linux-image-unsigned-5.15.0-1090-oracle Advisory build 5.15.0-1090.96~20.04.1 USN-7776-1
Ubuntu focal linux-image-unsigned-5.15.0-1092-aws Advisory build 5.15.0-1092.99~20.04.1 USN-7774-1
Ubuntu focal linux-image-unsigned-5.15.0-1092-gcp Advisory build 5.15.0-1092.101~20.04.1 USN-7774-1
Ubuntu focal linux-image-unsigned-5.15.0-1096-azure Advisory build 5.15.0-1096.105~20.04.1 USN-7775-3
Ubuntu focal linux-image-unsigned-5.15.0-156-generic Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-image-unsigned-5.15.0-156-generic-64k Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-image-unsigned-5.15.0-156-lowlatency Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-image-unsigned-5.15.0-156-lowlatency-64k Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-intel-iotg-5.15 Advisory build 5.15.0-1087.93~20.04.1 USN-7774-1
Ubuntu focal linux-intel-iotg-5.15-cloud-tools-5.15.0-1087 Advisory build 5.15.0-1087.93~20.04.1 USN-7774-1
Ubuntu focal linux-intel-iotg-5.15-cloud-tools-common Advisory build 5.15.0-1087.93~20.04.1 USN-7774-1
Ubuntu focal linux-intel-iotg-5.15-headers-5.15.0-1087 Advisory build 5.15.0-1087.93~20.04.1 USN-7774-1
Ubuntu focal linux-intel-iotg-5.15-tools-5.15.0-1087 Advisory build 5.15.0-1087.93~20.04.1 USN-7774-1
Ubuntu focal linux-intel-iotg-5.15-tools-common Advisory build 5.15.0-1087.93~20.04.1 USN-7774-1
Ubuntu focal linux-intel-iotg-5.15-tools-host Advisory build 5.15.0-1087.93~20.04.1 USN-7774-1
Ubuntu focal linux-lowlatency-hwe-5.15 Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-lowlatency-hwe-5.15-cloud-tools-5.15.0-156 Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-lowlatency-hwe-5.15-headers-5.15.0-156 Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-lowlatency-hwe-5.15-tools-5.15.0-156 Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-modules-5.15.0-1045-nvidia-tegra Advisory build 5.15.0-1045.45~20.04.1 USN-7774-1
Ubuntu focal linux-modules-5.15.0-1045-nvidia-tegra-rt Advisory build 5.15.0-1045.45~20.04.1 USN-7774-1
Ubuntu focal linux-modules-5.15.0-1086-ibm Advisory build 5.15.0-1086.89~20.04.1 USN-7774-1

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: net: appletalk: Fix device refcount leak in atrtr_create() When updating an existing route entry in atrtr_create(), the old device reference was not being released before assigning the new device, leading to a device refcount leak. Fix this by calling dev_put() to release the old device reference before holding the new one.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

37

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The vulnerability is reached via `ioctl(SIOCADDRT)` on a locally-created `AF_APPLETALK` socket, requiring local system access. There is no remote or adjacent-network trigger for `atrtr_create()`. AC:L - The leak is fully deterministic — issuing the same `SIOCADDRT` twice for one route target/flags pair leaks a reference on every subsequent call, with no race, timing window, or memory-layout dependency. The attacker controls the loop entirely and `appletalk.ko` autoloads on demand. PR:L - The 32-bit compat path `atalk_compat_routing_ioctl()` reaches `atrtr_create()` with no capability check whatsoever (dropped in v5.6 by dc13c8761c91c0), and `compat_sock_ioctl()` dispatches to it before any generic gating, so an ordinary unprivileged user account suffices. Only the native path enforces `capable(CAP_NET_ADMIN)`. UI:N - The attacker triggers the entire sequence from their own process with socket creation and repeated ioctls. No victim action or cooperation is involved. S:U - The leaked reference, the resulting hang, and any subsequent memory corruption are all confined to the kernel's own security authority. No VM, IOMMU, or sandbox boundary is crossed. C:H - The netdev refcount is an unprotected wrappable `int` (`this_cpu_inc` on `pcpu_refcnt`, no `refcount_t` saturation), so sustained leaking wraps `netdev_refcnt_read()` and causes `free_netdev()` while live references remain. The resulting use-after-free on `struct net_device` — still referenced by routes, qdiscs and sockets — yields an arbitrary kernel read primitive after heap reclaim. I:H - The same refcount wrap produces a dangling `struct net_device`, an object dense with function-pointer tables (`netdev_ops`, `ethtool_ops`, `header_ops`) that is straightforward to reclaim and spray, giving a write and control-flow hijack primitive. Per kernel scoring guidance, use-after-free is rated High for integrity. A:H - Each leaked reference makes the device permanently unremovable — `netdev_wait_allrefs_any()` spins forever from `netdev_run_todo()`, wedging the single-threaded `cleanup_net` workqueue so all further netns teardown and RTNL device removal hangs system-wide until reboot. The `BUG_ON(netdev_refcnt_read(dev) != 1)` in `netdev_run_todo()` additionally gives a directly reachable kernel panic.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux c7f905f0f6d49ed8c1aa4566c31f0383a0ba0c9d to < b92bedf71f25303e203a4e657489d76691a58119 (affected · git)c7f905f0f6d49ed8c1aa4566c31f0383a0ba0c9d to < a7852b01793669248dce0348d14df89e77a32afd (affected · git)c7f905f0f6d49ed8c1aa4566c31f0383a0ba0c9d to < b2f5dfa87367fdce9f8b995bc6c38f64f9ea2c90 (affected · git)c7f905f0f6d49ed8c1aa4566c31f0383a0ba0c9d to < d2e9f50f0bdad73b64a871f25186b899624518c4 (affected · git)c7f905f0f6d49ed8c1aa4566c31f0383a0ba0c9d to < 4a17370da6e476d3d275534e9e9cd2d02c57ca46 (affected · git)c7f905f0f6d49ed8c1aa4566c31f0383a0ba0c9d to < 473f3eadfc73b0fb6d8dee5829d19a5772e387f7 (affected · git)c7f905f0f6d49ed8c1aa4566c31f0383a0ba0c9d to < 64124cf0aab0dd1e18c0fb5ae66e45741e727f8b (affected · git)c7f905f0f6d49ed8c1aa4566c31f0383a0ba0c9d to < 711c80f7d8b163d3ecd463cd96f07230f488e750 (affected · git)Default: unaffected Linux · cna
Linux Linux 2.6.12 (affected)0 to < 2.6.12 (unaffected · semver)5.4.296 through 5.4.* (unaffected · semver)5.10.240 through 5.10.* (unaffected · semver)5.15.189 through 5.15.* (unaffected · semver)6.1.146 through 6.1.* (unaffected · semver)6.6.99 through 6.6.* (unaffected · semver)6.12.39 through 6.12.* (unaffected · semver)6.15.7 through 6.15.* (unaffected · semver)6.16 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

10

Provider assertions

2

Linux · cna

net: appletalk: Fix device refcount leak in atrtr_create()

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
2851317d224f159f8d84b01533d5ef70e7c9fa9a7b0710e00cba70c7f6483b29
Ingested
23 Sep 2026, 08:46:47 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected