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.
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
| Attack Vector | LOCAL |
|---|---|
| Attack Complexity | HIGH |
| Privileges Required | LOW |
| User Interaction | NONE |
| Scope | UNCHANGED |
| Confidentiality Impact | HIGH |
| Integrity Impact | HIGH |
| Availability Impact | HIGH |
| Source | Type | Description |
|---|---|---|
| [email protected] | Primary |
en
CWE-416
|
| Vendor | Product | Version | Update | Type |
|---|---|---|---|---|
| linux | linux_kernel | * | <built-in method update of dict object at 0x702bc462c480> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x702b703b9900> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x702bde7ad1c0> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x702bde7acc40> | Operating System |
| linux | linux_kernel | 2.6.12 | <built-in method update of dict object at 0x702bc462d980> | Operating System |
| linux | linux_kernel | 2.6.12 | <built-in method update of dict object at 0x702bc462ca40> | Operating System |
| linux | linux_kernel | 2.6.12 | <built-in method update of dict object at 0x702b703b9880> | Operating System |
| linux | linux_kernel | 2.6.12 | <built-in method update of dict object at 0x702bde7af040> | Operating System |
| linux | linux_kernel | 2.6.12 | <built-in method update of dict object at 0x702bc462f5c0> | Operating System |
| linux | linux_kernel | 6.17 | <built-in method update of dict object at 0x702bc462f3c0> | Operating System |
| linux | linux_kernel | 6.17 | <built-in method update of dict object at 0x702bde7ace00> | Operating System |
| linux | linux_kernel | 6.17 | <built-in method update of dict object at 0x702bde7adb40> | Operating System |
| debian | debian_linux | 11.0 | <built-in method update of dict object at 0x702bde7af980> | Operating System |
| Vulnerable | CPE |
|---|---|
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:2.6.12:-:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:2.6.12:rc2:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:2.6.12:rc3:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:2.6.12:rc4:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:2.6.12:rc5:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:6.17:rc1:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:6.17:rc2:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:6.17:rc3:*:*:*:*:*:* |
| Vulnerable | CPE |
|---|---|
| Yes | cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* |