CVE-2025-38031: padata: do not leak refcount in reorder_work

Published Jun 18, 2025
·
Updated

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

padata: do not leak refcount in reorderwork

A recent patch that addressed a UAF introduced a reference count leak: the paralleldata refcount is incremented unconditionally, regardless of the return value of queuework(). If the work item is already queued, the incremented refcount is never decremented.

Fix this by checking the return value of queuework() and decrementing the refcount when necessary.

Resolves:

Unreferenced object 0xffff9d9f421e3d80 (size 192): comm "cryptomgrprobe", pid 157, jiffies 4294694003 hex dump (first 32 bytes): 80 8b cf 41 9f 9d ff ff b8 97 e0 89 ff ff ff ff ...A............ d0 97 e0 89 ff ff ff ff 19 00 00 00 1f 88 23 00 ..............#. backtrace (crc 838fb36): kmalloccachenoprof+0x284/0x320 padataallocpd+0x20/0x1e0 padataallocshell+0x3b/0xa0 0xffffffffc040a54d cryptomgrprobe+0x43/0xc0 kthread+0xf6/0x1f0 retfromfork+0x2f/0x50 retfromforkasm+0x1a/0x30

Affected Software

15 affected components
Linux Linux kernel
Linux Linux kernel>=5.10.235<5.10.238
Linux Linux kernel>=5.15.179<5.15.185
Linux Linux kernel>=6.1.129<6.1.141
Linux Linux kernel>=6.6.76<6.6.93
Linux Linux kernel>=6.12.13<6.12.31
Linux Linux kernel>=6.13.2<6.14.9
Linux Linux kernel=6.15-rc1
Linux Linux kernel=6.15-rc2
Linux Linux kernel=6.15-rc3
Linux Linux kernel=6.15-rc4
Linux Linux kernel=6.15-rc5
Linux Linux kernel=6.15-rc6
Linux Linux kernel=6.15-rc7
Debian Debian Linux=11.0

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
  2. Compensating control

    In padata reorder_work, check the return value of queue_work() and decrement the incremented parallel_data reference count when the work item is already queued.

Event History

Jun 18, 2025
CVE Published
via MITRE·09:33 AM
Data Sourced
via MITRE·09:33 AM
Description
Data Sourced
via NVD·10:15 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-38031?

CVE-2025-38031 is classified as a medium severity vulnerability in the Linux kernel due to a reference count leak.

2

How do I fix CVE-2025-38031?

To fix CVE-2025-38031, update your Linux kernel to the latest patched version available for your distribution.

3

Which versions of the Linux kernel are affected by CVE-2025-38031?

CVE-2025-38031 affects Linux kernel versions between 5.10.235 to 5.10.238, 5.15.179 to 5.15.185, 6.1.129 to 6.1.141, 6.6.76 to 6.6.93, 6.12.13 to 6.12.31, and 6.13.2 to 6.15-rc7.

4

What type of vulnerability is CVE-2025-38031?

CVE-2025-38031 is a reference count leak vulnerability that occurs in the padata subsystem of the Linux kernel.

5

What are the potential impacts of CVE-2025-38031?

The potential impacts of CVE-2025-38031 include denial of service or unexpected behavior in the system due to memory management issues.

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