CVE-2025-21856: s390/ism: add release function for struct device

Published Mar 12, 2025
·
Updated

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

s390/ism: add release function for struct device

According to devicerelease() 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 deviceadd() 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.

Affected Software

7 affected components
Linux Linux kernel
Linux Linux kernel>=6.3<6.6.80
Linux Linux kernel>=6.7<6.12.17
Linux Linux kernel>=6.13<6.13.5
Linux Linux kernel=6.14-rc1
Linux Linux kernel=6.14-rc2
Linux Linux kernel=6.14-rc3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Add a proper release function for the s390/ism struct device before or when registering it with device_add(), so the device is not freed while references may still be held.

Event History

Mar 12, 2025
CVE Published
via MITRE·09:42 AM
Data Sourced
via MITRE·09:42 AM
Description
Data Sourced
via NVD·10:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Apr 9, 2025
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2025-21856?

CVE-2025-21856 is considered to have a medium severity level due to its potential impact on device management in the Linux kernel.

2

How do I fix CVE-2025-21856?

To fix CVE-2025-21856, update your Linux kernel to the latest stable version that has the release function implemented for struct device.

3

What systems are affected by CVE-2025-21856?

CVE-2025-21856 affects devices running the Linux kernel, particularly those relying on the s390 architecture.

4

What happens if I don't address CVE-2025-21856?

Failing to address CVE-2025-21856 may lead to unstable device management which can cause system crashes or unexpected behaviors.

5

Is there a workaround for CVE-2025-21856?

There are no known workarounds for CVE-2025-21856; updating the Linux kernel is the recommended course of action.

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