CVE-2026-139517: floppy: unregister platform device on add_disk failure

Published Nov 30, 2026
·
Updated

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

floppy: unregister platform device on adddisk failure

The change referenced by the Fixes tag reverted a previous fix because that fix added incorrect cleanup for the platformdeviceregister() failure path.

However, reverting the whole change also removed the cleanup for a later failure path. If platformdeviceregister() succeeds but deviceadddisk() fails, the current floppy platform device has already been registered and registered[drive] has been set.

The common outremovedrives path uses while (drive--), so it starts from the previous drive and does not unregister the current one. As a result, the platform device registered for the failing drive is leaked.

Unregister the current platform device directly on the deviceadddisk() failure path, where platformdeviceregister() is known to have succeeded. Leave the platformdeviceregister() failure path unchanged.

Affected Software

6 affected componentsFixes available
Linux Linux kernel
linux/kernel>=5.16.0<6.1.193
6.1.193
linux/kernel>=6.2.0<6.6.163
6.6.163
linux/kernel>=6.7.0<6.12.119
6.12.119
linux/kernel>=6.13.0<6.18.65
6.18.65
linux/kernel>=6.19.0<7.3.6
7.3.6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 6.1.193
  2. Upgrade

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

    Fixed in 6.6.163
  3. Upgrade

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

    Fixed in 6.12.119
  4. Upgrade

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

    Fixed in 6.18.65
  5. Upgrade

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

    Fixed in 7.3.6
  6. Compensating control

    On the device_add_disk() failure path, directly unregister the current floppy platform device; leave the platform_device_register() failure path unchanged.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:35 PM
Data Sourced
via MITRE·01:35 PM
Description
Data Sourced
via OSV·01:35 PM
DescriptionAffected Software
Data Sourced
via NVD·02:19 PM
Description

Frequently Asked Questions

1

Under what conditions does the resource leak occur?

It occurs when platform_device_register() succeeds for a floppy drive but device_add_disk() subsequently fails. The cleanup path skips the currently failing drive, leaving its already-registered platform device unregistered.

2

What is the practical impact of the failure?

A platform device associated with the failing floppy drive is leaked. The issue is limited to the later device_add_disk() failure path; the platform_device_register() failure path is not changed.

3

How can an affected system be identified?

The affected condition requires a floppy drive initialization attempt in which platform device registration succeeds and disk addition fails. The provided information does not specify a user-visible indicator, affected kernel versions, or a diagnostic message for detecting this state.

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