Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
CVE Vulnerability Details :
CVE-2025-71274
PUBLISHED
More InfoOfficial Page
Assigner-Linux
Assigner Org ID-416baaa9-dc9f-4396-8d5f-8c081fb06d67
View Known Exploited Vulnerability (KEV) details
Published At-06 May, 2026 | 11:27
Updated At-11 May, 2026 | 21:57
Rejected At-
▼CVE Numbering Authority (CNA)
rpmsg: core: fix race in driver_override_show() and use core helper

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.

Affected Products
Vendor
Linux Kernel Organization, IncLinux
Product
Linux
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Program Files
  • drivers/rpmsg/rpmsg_core.c
Default Status
unaffected
Versions
Affected
  • From 39e47767ec9b22f844c2a07c9d329256960d4021 before 392c6b68334aa0e0ae9aba95c0a366bcb0d92f5d (git)
  • From 39e47767ec9b22f844c2a07c9d329256960d4021 before d66b8074c555e8abb0ae19eea1c9f3635498bdde (git)
  • From 39e47767ec9b22f844c2a07c9d329256960d4021 before 47615557447185917afa432b7958f87583c417cb (git)
  • From 39e47767ec9b22f844c2a07c9d329256960d4021 before 90c8353f471821d7ccd4fe573a2402e056192494 (git)
  • From 39e47767ec9b22f844c2a07c9d329256960d4021 before 7654e6e3cd6bdee9602f6063b3c670bd556d7e61 (git)
  • From 39e47767ec9b22f844c2a07c9d329256960d4021 before 2e4a70f3c30910427e5ea848b799066d67b963d5 (git)
  • From 39e47767ec9b22f844c2a07c9d329256960d4021 before 954557957177c3c13d7c655976665b1170da5e50 (git)
  • From 39e47767ec9b22f844c2a07c9d329256960d4021 before 42023d4b6d2661a40ee2dcf7e1a3528a35c638ca (git)
Vendor
Linux Kernel Organization, IncLinux
Product
Linux
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Program Files
  • drivers/rpmsg/rpmsg_core.c
Default Status
affected
Versions
Affected
  • 4.18
Unaffected
  • From 0 before 4.18 (semver)
  • From 5.10.252 through 5.10.* (semver)
  • From 5.15.202 through 5.15.* (semver)
  • From 6.1.165 through 6.1.* (semver)
  • From 6.6.128 through 6.6.* (semver)
  • From 6.12.75 through 6.12.* (semver)
  • From 6.18.16 through 6.18.* (semver)
  • From 6.19.6 through 6.19.* (semver)
  • From 7.0 through * (original_commit_for_fix)
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://git.kernel.org/stable/c/392c6b68334aa0e0ae9aba95c0a366bcb0d92f5d
N/A
https://git.kernel.org/stable/c/d66b8074c555e8abb0ae19eea1c9f3635498bdde
N/A
https://git.kernel.org/stable/c/47615557447185917afa432b7958f87583c417cb
N/A
https://git.kernel.org/stable/c/90c8353f471821d7ccd4fe573a2402e056192494
N/A
https://git.kernel.org/stable/c/7654e6e3cd6bdee9602f6063b3c670bd556d7e61
N/A
https://git.kernel.org/stable/c/2e4a70f3c30910427e5ea848b799066d67b963d5
N/A
https://git.kernel.org/stable/c/954557957177c3c13d7c655976665b1170da5e50
N/A
https://git.kernel.org/stable/c/42023d4b6d2661a40ee2dcf7e1a3528a35c638ca
N/A
Hyperlink: https://git.kernel.org/stable/c/392c6b68334aa0e0ae9aba95c0a366bcb0d92f5d
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/d66b8074c555e8abb0ae19eea1c9f3635498bdde
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/47615557447185917afa432b7958f87583c417cb
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/90c8353f471821d7ccd4fe573a2402e056192494
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/7654e6e3cd6bdee9602f6063b3c670bd556d7e61
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/2e4a70f3c30910427e5ea848b799066d67b963d5
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/954557957177c3c13d7c655976665b1170da5e50
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/42023d4b6d2661a40ee2dcf7e1a3528a35c638ca
Resource: N/A
Details not found