{"id":"CVE-2025-39826","summary":"net: rose: convert 'use' field to refcount_t","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: rose: convert 'use' field to refcount_t\n\nThe 'use' field in struct rose_neigh is used as a reference counter but\nlacks atomicity. This can lead to race conditions where a rose_neigh\nstructure is freed while still being referenced by other code paths.\n\nFor example, when rose_neigh-\u003euse becomes zero during an ioctl operation\nvia rose_rt_ioctl(), the structure may be removed while its timer is\nstill active, potentially causing use-after-free issues.\n\nThis patch changes the type of 'use' from unsigned short to refcount_t and\nupdates all code paths to use rose_neigh_hold() and rose_neigh_put() which\noperate reference counts atomically.","modified":"2026-04-02T12:48:10.154079Z","published":"2025-09-16T13:00:24.618Z","related":["SUSE-SU-2025:03600-1","SUSE-SU-2025:03634-1","SUSE-SU-2025:20851-1","SUSE-SU-2025:20861-1","SUSE-SU-2025:20870-1","SUSE-SU-2025:20898-1","SUSE-SU-2025:21074-1","SUSE-SU-2025:21139-1","SUSE-SU-2025:21179-1","SUSE-SU-2025:3751-1","SUSE-SU-2025:4057-1","SUSE-SU-2025:4132-1","SUSE-SU-2025:4141-1","openSUSE-SU-2025:20081-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39826.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0085b250fcc79f900c82a69980ec2f3e1871823b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/203e4f42596ede31498744018716a3db6dbb7f51"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d860d1faa6b2ce3becfdb8b0c2b048ad31800061"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f8c29fc437d03a98fb075c31c5be761cc8326284"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fb07156cc0742ba4e93dfcc84280c011d05b301f"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39826.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39826"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2"},{"fixed":"fb07156cc0742ba4e93dfcc84280c011d05b301f"},{"fixed":"f8c29fc437d03a98fb075c31c5be761cc8326284"},{"fixed":"0085b250fcc79f900c82a69980ec2f3e1871823b"},{"fixed":"203e4f42596ede31498744018716a3db6dbb7f51"},{"fixed":"d860d1faa6b2ce3becfdb8b0c2b048ad31800061"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39826.json"}}],"schema_version":"1.7.5"}