CVE-2025-71274

rpmsg: core: fix race in driver_override_show() and use core helper

7.8 high EPSS 0.10%

Published 6 May 2026 Updated 19 Oct 2026 CNA: Linux

Check your servers for CVE-2025-71274

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-71274 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.10%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 0.87% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 16 Oct 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
total: full control of the component or of its data

Weakness

  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 39e47767ec9b22f844c2a07c9d329256960d4021, before 392c6b68334aa0e0ae9aba95c0a366bcb0d92f5d
affected from 39e47767ec9b22f844c2a07c9d329256960d4021, before d66b8074c555e8abb0ae19eea1c9f3635498bdde
affected from 39e47767ec9b22f844c2a07c9d329256960d4021, before 47615557447185917afa432b7958f87583c417cb
affected from 39e47767ec9b22f844c2a07c9d329256960d4021, before 90c8353f471821d7ccd4fe573a2402e056192494
affected from 39e47767ec9b22f844c2a07c9d329256960d4021, before 7654e6e3cd6bdee9602f6063b3c670bd556d7e61
affected from 39e47767ec9b22f844c2a07c9d329256960d4021, before 2e4a70f3c30910427e5ea848b799066d67b963d5
affected from 39e47767ec9b22f844c2a07c9d329256960d4021, before 954557957177c3c13d7c655976665b1170da5e50
affected from 39e47767ec9b22f844c2a07c9d329256960d4021, before 42023d4b6d2661a40ee2dcf7e1a3528a35c638ca
Other versions: unaffected
Linux
affected 4.18
unaffected before 4.18
unaffected from 5.10.252 up to and including 5.10.*
unaffected from 5.15.202 up to and including 5.15.*
unaffected from 6.1.165 up to and including 6.1.*
unaffected from 6.6.128 up to and including 6.6.*
unaffected from 6.12.75 up to and including 6.12.*
unaffected from 6.18.16 up to and including 6.18.*
unaffected from 6.19.6 up to and including 6.19.*
unaffected 7.0 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-71274 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-71274

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-71274
trivy image --scanners vuln IMAGE | grep CVE-2025-71274

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-71274 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.