CVE-2025-39826: net: rose: convert 'use' field to refcount_t
In the Linux kernel, the following vulnerability has been resolved:
net: rose: convert 'use' field to refcountt
The 'use' field in struct roseneigh is used as a reference counter but lacks atomicity. This can lead to race conditions where a roseneigh structure is freed while still being referenced by other code paths.
For example, when roseneigh->use becomes zero during an ioctl operation via rosertioctl(), 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 refcountt and updates all code paths to use roseneighhold() and roseneighput() which operate reference counts atomically.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Linux kernel net: rose (struct rose_neigh 'use' refcount_t conversion)to a version that resolves this vulnerability.Patch net: rose: convert 'use' field to refcount_t
Event History
Frequently Asked Questions
What is the severity of CVE-2025-39826?
CVE-2025-39826 has been classified as a medium severity vulnerability due to its potential for race conditions.
How do I fix CVE-2025-39826?
To fix CVE-2025-39826, ensure that your Linux kernel is updated to the latest patched version containing the fix.
Which versions of the Linux kernel are affected by CVE-2025-39826?
CVE-2025-39826 affects certain versions of the Linux kernel prior to the application of the fix.
What types of systems are at risk from CVE-2025-39826?
Systems running affected versions of the Linux kernel, particularly those utilizing the ROSE protocol, are at risk from CVE-2025-39826.
What are the potential impacts of CVE-2025-39826 on systems?
The potential impacts of CVE-2025-39826 include unexpected behavior in network communications and possible system crashes due to race conditions.