CVE-2025-38418: remoteproc: core: Release rproc->clean_table after rproc_attach() fails

Published Jul 25, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

remoteproc: core: Release rproc->cleantable after rprocattach() fails

When rproc->state = RPROCDETACHED is attached to remote processor through rprocattach(), if rprochandleresources() returns failure, then the clean table should be released, otherwise the following memory leak will occur.

unreferenced object 0xffff000086a99800 (size 1024): comm "kworker/u12:3", pid 59, jiffies 4294893670 (age 121.140s) hex dump (first 32 bytes): 00 00 00 00 00 80 00 00 00 00 00 00 00 00 10 00 ............ 00 00 00 00 00 00 08 00 00 00 00 00 00 00 00 00 ............ backtrace: [<000000008bbe4ca8>] slabpostallochook+0x98/0x3fc [<000000003b8a272b>] kmemcacheallocnode+0x13c/0x230 [<000000007a507c51>] kmallocnodetrackcaller+0x5c/0x260 [<0000000037818dae>] kmemdup+0x34/0x60 [<00000000610f7f57>] rprocboot+0x35c/0x56c [<0000000065f8871a>] rprocadd+0x124/0x17c [<00000000497416ee>] imxrprocprobe+0x4ec/0x5d4 [<000000003bcaa37d>] platformprobe+0x68/0xd8 [<00000000771577f9>] reallyprobe+0x110/0x27c [<00000000531fea59>] driverprobedevice+0x78/0x12c [<0000000080036a04>] driverprobedevice+0x3c/0x118 [<000000007e0bddcb>] deviceattachdriver+0xb8/0xf8 [<000000000cf1fa33>] busforeachdrv+0x84/0xe4 [<000000001a53b53e>] deviceattach+0xfc/0x18c [<00000000d1a2a32c>] deviceinitialprobe+0x14/0x20 [<00000000d8f8b7ae>] busprobedevice+0xb0/0xb4 unreferenced object 0xffff0000864c9690 (size 16):

Affected Software

9 affected componentsFixes available
Linux Kernel
Linux Linux kernel>=5.13<5.15.186
Linux Linux kernel>=5.16<6.1.142
Linux Linux kernel>=6.2<6.6.95
Linux Linux kernel>=6.7<6.12.35
Linux Linux kernel>=6.13<6.15.4
Debian Debian Linux=11.0
Microsoft azl3 kernel 6.6.92.2-2
debian/linux
6.1.176-16.1.190-16.12.107-16.12.113-17.2.12-17.2.13-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.113-1Fixed in 7.2.12-1Fixed in 7.2.13-1

Event History

Jul 25, 2025
CVE Published
via MITRE·02:05 PM
Data Sourced
via MITRE·02:05 PM
Description
Data Sourced
via NVD·02:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Aug 7, 2025
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2025-38418?

CVE-2025-38418 has a medium severity rating due to potential impacts on system stability.

2

How do I fix CVE-2025-38418?

To fix CVE-2025-38418, update the Linux kernel to the latest stable version that contains the patch.

3

What systems are affected by CVE-2025-38418?

CVE-2025-38418 affects the Linux kernel, specifically systems utilizing the remoteproc functionality.

4

Who is responsible for addressing CVE-2025-38418?

The Linux kernel maintainers are responsible for addressing CVE-2025-38418 by releasing updates.

5

What is the impact of CVE-2025-38418 on applications?

CVE-2025-38418 could lead to unexpected behavior of applications that rely on the remote processor management.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203