Use-after-free in Linux kernel - CVE-2025-21935
Published: April 2, 2025 / Updated: May 11, 2025
Vulnerability identifier: #VU106611
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2025-21935
CWE-ID: CWE-416
Exploitation vector: Local access
Exploit availability:
No public exploit available
Vendor: Linux Foundation
Affected software:
Linux kernel
Linux kernel
Detailed vulnerability description
The vulnerability allows a local user to escalate privileges on the system.
The vulnerability exists due to a use-after-free error within the rio_scan_alloc_net() function in drivers/rapidio/rio-scan.c. A local user can escalate privileges on the system.
How to mitigate CVE-2025-21935
Install update from vendor's website.
Sources
- https://git.kernel.org/stable/c/181d4daaefb3bceeb2f2635ba9f3781eeda9e550
- https://git.kernel.org/stable/c/4f3509cfcc02e9d757f2714bb7dbbeec35de6fa7
- https://git.kernel.org/stable/c/6d22953c4a183d0b7fdf34d68c5debd16da6edc5
- https://git.kernel.org/stable/c/a0d069ccc475abaaa79c6368ee27fc0b5912bea8
- https://git.kernel.org/stable/c/ad82be4298a89a9ae46f07128bdf3d8614bce745
- https://git.kernel.org/stable/c/c332f3e2df0fcae5a45fd55cc18902fb1e4825ca
- https://git.kernel.org/stable/c/e6411c3b9512dba09af7d014d474516828c89706
- https://git.kernel.org/stable/c/e842f9a1edf306bf36fe2a4d847a0b0d458770de
- https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.10.235
- https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.15.179
- https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.4.291
- https://mirrors.edge.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.1.131
- https://mirrors.edge.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.19
- https://mirrors.edge.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.13.7
- https://mirrors.edge.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.14
- https://mirrors.edge.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.83