CVE-2025-39826
JSON

8.8high

net: rose: convert 'use' field to refcount_t

Severity
8.8high CVSS:3.1 by Linux
Exploit likelihood
0.22% (higher than 13% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 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.17NVD
debian debian_linux11.0NVD

All scores

Linux8.8high CVSS:3.1CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.0high CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: net: rose: convertir el campo 'use' a refcount_t El campo 'use' en la estructura rose_neigh se utiliza como un contador de referencias pero carece de atomicidad. Esto puede llevar a condiciones de carrera donde una estructura rose_neigh es liberada mientras aún está siendo referenciada por otras rutas de código. Por ejemplo, cuando rose_neigh->use llega a cero durante una operación ioctl a través de rose_rt_ioctl(), la estructura puede ser eliminada mientras su temporizador aún está activo, potencialmente causando problemas de uso después de liberación. Este parche cambia el tipo de 'use' de unsigned short a refcount_t y actualiza todas las rutas de código para usar rose_neigh_hold() y rose_neigh_put() que operan los contadores de referencias de forma atómica.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-39826 changed 2026-11-10CVE Terms of Use
NVDCVE-2025-39826 changed 2026-11-10Public domain