CVE-2026-139517

floppy: unregister platform device on add_disk failure

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

floppy: unregister platform device on add_disk failure

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

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

The common out_remove_drives 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 device_add_disk()
failure path, where platform_device_register() is known to have
succeeded. Leave the platform_device_register() failure path unchanged.

Analysis

AI-generated

Technical impact

The vulnerability arises when a floppy platform device is registered successfully but the subsequent device_add_disk operation fails. In this scenario the code path mistakenly skips unregistering the platform device, resulting in a leaked registration. This leak consumes kernel resources and can lead to exhaustion or degraded system performance, potentially culminating in a denial‑of‑service condition. The weakness is a failure to free a resource that was previously acquired, a classic flaw that undermines system stability.

Affected Systems

The flaw exists in the Linux kernel, affecting any kernel that implements the floppy driver component without the correct cleanup logic. No specific version range is provided, but the issue is tied to changes tracked in the kernel source under the floppy subsystem. Users running a kernel that has not incorporated the recent fix will be exposed.

Risk and Exploitability

Because this defect manifests only when a privileged operation—adding a floppy disk—fails after the device has been registered, the attack vector requires root or kernel‑level privileges to trigger. The vulnerability is not currently listed in CISA’s KEV catalog and no EPSS score is available, so the probability of exploitation is uncertain but presumably low, yet it can be leveraged by an authenticated attacker to induce a resource‑leak‑based denial‑of‑service. The severity is dependent on the kernel configuration and workload; in heavily deployed systems, repeated leaks could exhaust kernel memory.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Ensure the system runs a Linux kernel release that contains the fix for the floppy platform device cleanup issue.
  • If floppy support is unnecessary, disable the floppy driver module or remove it from the initramfs to eliminate the affected code path.
  • Monitor kernel logs for errors related to device_add_disk failures and periodically check for orphaned platform devices; consider implementing a watchdog that clears stale registrations.

Generated by OpenCVE AI on November 30, 2026 at 23:15 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-772
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: floppy: unregister platform device on add_disk failure The change referenced by the Fixes tag reverted a previous fix because that fix added incorrect cleanup for the platform_device_register() failure path. However, reverting the whole change also removed the cleanup for a later failure path. If platform_device_register() succeeds but device_add_disk() fails, the current floppy platform device has already been registered and registered[drive] has been set. The common out_remove_drives 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 device_add_disk() failure path, where platform_device_register() is known to have succeeded. Leave the platform_device_register() failure path unchanged.
Title floppy: unregister platform device on add_disk failure
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-772

    Missing Release of Resource after Effective Lifetime

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:35 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM