CVE-2025-71274 Details
Description
In the Linux kernel, the following vulnerability has been resolved: rpmsg: core: fix race in driver_override_show() and use core helper The driver_override_show function reads the driver_override string without holding the device_lock. However, the store function modifies and frees the string while holding the device_lock. This creates a race condition where the string can be freed by the store function while being read by the show function, leading to a use-after-free. To fix this, replace the rpmsg_string_attr macro with explicit show and store functions. The new driver_override_store uses the standard driver_set_override helper. Since the introduction of driver_set_override, the comments in include/linux/rpmsg.h have stated that this helper must be used to set or clear driver_override, but the implementation was not updated until now. Because driver_set_override modifies and frees the string while holding the device_lock, the new driver_override_show now correctly holds the device_lock during the read operation to prevent the race. Additionally, since rpmsg_string_attr has only ever been used for driver_override, removing the macro simplifies the code.
A race condition vulnerability has been identified in the Linux kernel's rpmsg driver, specifically within the driver_override_show and driver_override_store functions. The issue arises because driver_override_show reads the driver_override string without holding the device lock, while driver_override_store modifies and frees the string while the device lock is engaged. This discrepancy can lead to a use-after-free condition, where the string is freed by the store function before the show function has finished reading it. The vulnerability affects the Linux kernel stable tree.
The vulnerability has been addressed by updating the rpmsg driver to use explicit show and store functions for the driver_override attribute. The revised driver_override_show function now properly holds the device lock during read operations, preventing the race condition. Users should upgrade to the patched version of the Linux kernel where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 16, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/2e4a70f3c30910427e5ea848b799066d67b963d5 | kernel.org | Patch |
| https://git.kernel.org/stable/c/392c6b68334aa0e0ae9aba95c0a366bcb0d92f5d | kernel.org | Patch |
| https://git.kernel.org/stable/c/42023d4b6d2661a40ee2dcf7e1a3528a35c638ca | kernel.org | Patch |
| https://git.kernel.org/stable/c/47615557447185917afa432b7958f87583c417cb | kernel.org | Patch |
| https://git.kernel.org/stable/c/7654e6e3cd6bdee9602f6063b3c670bd556d7e61 | kernel.org | Patch |
| https://git.kernel.org/stable/c/90c8353f471821d7ccd4fe573a2402e056192494 | kernel.org | Patch |
| https://git.kernel.org/stable/c/954557957177c3c13d7c655976665b1170da5e50 | kernel.org | Patch |
| https://git.kernel.org/stable/c/d66b8074c555e8abb0ae19eea1c9f3635498bdde | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-362 | Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') | [email protected] |
| CWE-362 | Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 4.18, < 5.10.252 >= 5.11, < 5.15.202 >= 5.16, < 6.1.165 >= 6.2, < 6.6.128 >= 6.7, < 6.12.75 >= 6.13, < 6.18.16 >= 6.19, < 6.19.6 |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Modified | CISA-ADP |
| Oct 16, 2026 | CVE Modified | CISA-ADP |
| Oct 16, 2026 | CVE Modified | kernel.org |
| Oct 14, 2026 | CVE Translated | [email protected] |
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| May 12, 2026 | Initial Analysis | [email protected] |
| May 6, 2026 | New CVE Received | kernel.org |