CVE-2025-39827
net: rose: include node references in rose_neigh refcount
Check your servers for CVE-2025-39827
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-39827 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
net: rose: include node references in rose_neigh refcount
Current implementation maintains two separate reference counting mechanisms: the 'count' field in struct rose_neigh tracks references from rose_node structures, while the 'use' field (now refcount_t) tracks references from rose_sock.
This patch merges these two reference counting systems using 'use' field for proper reference management. Specifically, this patch adds incrementing and decrementing of rose_neigh->use when rose_neigh->count is incremented or decremented.
This patch also modifies rose_rt_free(), rose_rt_device_down() and rose_clear_route() to properly release references to rose_neigh objects before freeing a rose_node through rose_remove_node().
These changes ensure rose_neigh structures are properly freed only when all references, including those from rose_node structures, are released. As a result, this resolves a slab-use-after-free issue reported by Syzbot.
Severity (CVSS)
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- adjacent: the attacker has to be on the same local network or link
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 15.5% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 4cce478c3e82a5fc788d72adb2f4c4e983997639 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 9c547c8eee9d1cf6e744611d688b9f725cf9a115 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before d7563b456ed44151e1a82091d96f60166daea89b affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 384210cceb1873a4c8218b27ba0745444436b728 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before da9c9c877597170b929a6121a68dcd3dd9a80f45
Other versions: unaffected
|
| Linux |
affected 2.6.12 unaffected before 2.6.12 unaffected from 6.1.150 up to and including 6.1.* unaffected from 6.6.104 up to and including 6.6.* unaffected from 6.12.45 up to and including 6.12.* unaffected from 6.16.5 up to and including 6.16.* unaffected 6.17 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-39827 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-39827
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-39827
trivy image --scanners vuln IMAGE | grep CVE-2025-39827
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/4cce478c3e82a5fc788d72adb2f4c4e983997639 git.kernel.org
- https://git.kernel.org/stable/c/9c547c8eee9d1cf6e744611d688b9f725cf9a115 git.kernel.org
- https://git.kernel.org/stable/c/d7563b456ed44151e1a82091d96f60166daea89b git.kernel.org
- https://git.kernel.org/stable/c/384210cceb1873a4c8218b27ba0745444436b728 git.kernel.org
- https://git.kernel.org/stable/c/da9c9c877597170b929a6121a68dcd3dd9a80f45 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html lists.debian.org
- https://cert-portal.siemens.com/productcert/html/ssa-032379.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-019113.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-457936.html cert-portal.siemens.com
Source: the record CVE-2025-39827 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse