# CVE-2025-71274: rpmsg: core: fix race in driver\_override\_show() and use core helper

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-05-06 · Modified: 2026-10-19
- Aliases: UBUNTU-CVE-2025-71274, DEBIAN-CVE-2025-71274
- Record: https://cvemate.com/vulnerability/CVE-2025-71274 · JSON: https://cvemate.com/vulnerability/CVE-2025-71274/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.103%, percentile 1.052%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 157)

- debian linux (Debian): \< 6.1.170-1 \| \< 6.12.85-1 \| \< 6.19.6-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-186.196 \| \< 6.8.0-134.134
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1112.119 \| \< 6.8.0-1060.63
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1112.119~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.17 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1060.63~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1112.119+fips1 \| \< 6.8.0-1060.63+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1117.126 \| \< 6.8.0-1063.71
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 37)

- <https://git.kernel.org/stable/c/392c6b68334aa0e0ae9aba95c0a366bcb0d92f5d>
- <https://git.kernel.org/stable/c/d66b8074c555e8abb0ae19eea1c9f3635498bdde>
- <https://git.kernel.org/stable/c/47615557447185917afa432b7958f87583c417cb>
- <https://git.kernel.org/stable/c/90c8353f471821d7ccd4fe573a2402e056192494>
- <https://git.kernel.org/stable/c/7654e6e3cd6bdee9602f6063b3c670bd556d7e61>
- <https://git.kernel.org/stable/c/2e4a70f3c30910427e5ea848b799066d67b963d5>
- <https://git.kernel.org/stable/c/954557957177c3c13d7c655976665b1170da5e50>
- <https://git.kernel.org/stable/c/42023d4b6d2661a40ee2dcf7e1a3528a35c638ca>
- <https://ubuntu.com/security/CVE-2025-71274>
- <https://www.cve.org/CVERecord?id=CVE-2025-71274>
- <https://git.kernel.org/linus/42023d4b6d2661a40ee2dcf7e1a3528a35c638ca>
- <https://ubuntu.com/security/notices/USN-8492-1>
- <https://ubuntu.com/security/notices/USN-8492-2>
- <https://ubuntu.com/security/notices/USN-8497-1>
- <https://ubuntu.com/security/notices/USN-8498-1>
- <https://ubuntu.com/security/notices/USN-8499-1>
- <https://ubuntu.com/security/notices/USN-8492-3>
- <https://ubuntu.com/security/notices/USN-8492-4>
- <https://ubuntu.com/security/notices/USN-8492-5>
- <https://ubuntu.com/security/notices/USN-8575-1>

---

Data as of 2026-12-05T04:11:57.164Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
