# CVE-2025-39826: net: rose: convert 'use' field to refcount_t

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:A/AC:L/PR:N/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.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2025-09-16T13:00:24.618Z
- Modified: 2026-11-10T13:17:51.350Z
- Weaknesses: CWE-416
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

net: rose: convert 'use' field to refcount_t

The 'use' field in struct rose_neigh is used as a reference counter but
lacks atomicity. This can lead to race conditions where a rose_neigh
structure is freed while still being referenced by other code paths.

For example, when rose_neigh->use becomes zero during an ioctl operation
via rose_rt_ioctl(), the structure may be removed while its timer is
still active, potentially causing use-after-free issues.

This patch changes the type of 'use' from unsigned short to refcount_t and
updates all code paths to use rose_neigh_hold() and rose_neigh_put() which
operate reference counts atomically.

(As written by CVE List.)

## Affected

- Linux Linux: from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before fb07156cc0742ba4e93dfcc84280c011d05b301f; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before f8c29fc437d03a98fb075c31c5be761cc8326284; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 0085b250fcc79f900c82a69980ec2f3e1871823b; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 203e4f42596ede31498744018716a3db6dbb7f51; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before d860d1faa6b2ce3becfdb8b0c2b048ad31800061; 2.6.12 (not affected: before 2.6.12; from 6.1.150 up to 6.1.*; from 6.6.104 up to 6.6.*; from 6.12.45 up to 6.12.*; from 6.16.5 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 2.6.12.1 before 6.1.150; from 6.2 before 6.6.104; from 6.7 before 6.12.45; from 6.13 before 6.16.5; 2.6.12; 6.17
- debian debian_linux: 11.0

## Every score

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

## References

- <https://git.kernel.org/stable/c/fb07156cc0742ba4e93dfcc84280c011d05b301f> (patch)
- <https://git.kernel.org/stable/c/f8c29fc437d03a98fb075c31c5be761cc8326284> (patch)
- <https://git.kernel.org/stable/c/0085b250fcc79f900c82a69980ec2f3e1871823b> (patch)
- <https://git.kernel.org/stable/c/203e4f42596ede31498744018716a3db6dbb7f51> (patch)
- <https://git.kernel.org/stable/c/d860d1faa6b2ce3becfdb8b0c2b048ad31800061> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (mailing-list, third-party-advisory)
- <https://cert-portal.siemens.com/productcert/html/ssa-032379.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

## Sources

- CVE List: [CVE-2025-39826](https://www.cve.org/CVERecord?id=CVE-2025-39826), CVE Terms of Use, modified 2026-11-10
- NVD: [CVE-2025-39826](https://nvd.nist.gov/vuln/detail/CVE-2025-39826), Public domain, modified 2026-11-10

---

Page: https://cve.day/CVE-2025-39826 · Whole record: https://cve.day/CVE-2025-39826.json · Rebuilt by cve.day 2026-11-25T22:59:04.731Z
