Bug 2351609 (CVE-2025-21856) - CVE-2025-21856 kernel: s390/ism: add release function for struct device
Summary: CVE-2025-21856 kernel: s390/ism: add release function for struct device
Keywords:
Status: NEW
Alias: CVE-2025-21856
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-03-12 12:23 UTC by OSIDB Bzimport
Modified: 2025-03-23 15:24 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-03-12 12:23:27 UTC
In the Linux kernel, the following vulnerability has been resolved:

s390/ism: add release function for struct device

According to device_release() in /drivers/base/core.c,
a device without a release function is a broken device
and must be fixed.

The current code directly frees the device after calling device_add()
without waiting for other kernel parts to release their references.
Thus, a reference could still be held to a struct device,
e.g., by sysfs, leading to potential use-after-free
issues if a proper release function is not set.

Comment 1 Avinash Hanwate 2025-03-13 06:56:34 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025031215-CVE-2025-21856-8865@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.