Bug 2586970 (CVE-2026-139517) - CVE-2026-139517 kernel: kernel: Resource leak in floppy driver via disk addition failure
Summary: CVE-2026-139517 kernel: kernel: Resource leak in floppy driver via disk addit...
Keywords:
Status: NEW
Alias: CVE-2026-139517
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-30 14:51 UTC by OSIDB Bzimport
Modified: 2026-12-01 07:35 UTC (History)
17 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-11-30 14:51:23 UTC
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.


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