# CVE-2026-139517: floppy: unregister platform device on add\_disk failure

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-11-30T13:35:28.921Z
- **Modified:** 2026-11-30T14:19:27.837Z

## Who should check

- Anyone running Linux \>= 47d34aa2d211e9cef61dd85b7b0011c9f61dd0ae, \< 047f4071139458b7f8640762308b2512bcfe2939; \>= 47d34aa2d211e9cef61dd85b7b0011c9f61dd0ae, \< 79b4b5b71dc695b6ada8be2260b768f9e64e83a6; \>= 47d34aa2d211e9cef61dd85b7b0011c9f61dd0ae, \< bb4e404e8fb75c159a2689573c307ca273986ab4; \>= 47d34aa2d211e9cef61dd85b7b0011c9f61dd0ae, \< e4767be464f2e48bdbe8e6b851e1f6553d4eafe5; \>= 47d34aa2d211e9cef61dd85b7b0011c9f61dd0ae, \< 5033a6b4d3e2432e073579ddf799621e170a8460; \>= 47d34aa2d211e9cef61dd85b7b0011c9f61dd0ae, \< f1e72d80ad4ac5ff3573796d07bd1a1e74909f94
- Anyone running Linux 5.16

## 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.

## Affected and fixed versions

- Linux: \>= 47d34aa2d211e9cef61dd85b7b0011c9f61dd0ae, \< 047f4071139458b7f8640762308b2512bcfe2939; \>= 47d34aa2d211e9cef61dd85b7b0011c9f61dd0ae, \< 79b4b5b71dc695b6ada8be2260b768f9e64e83a6; \>= 47d34aa2d211e9cef61dd85b7b0011c9f61dd0ae, \< bb4e404e8fb75c159a2689573c307ca273986ab4; \>= 47d34aa2d211e9cef61dd85b7b0011c9f61dd0ae, \< e4767be464f2e48bdbe8e6b851e1f6553d4eafe5; \>= 47d34aa2d211e9cef61dd85b7b0011c9f61dd0ae, \< 5033a6b4d3e2432e073579ddf799621e170a8460; \>= 47d34aa2d211e9cef61dd85b7b0011c9f61dd0ae, \< f1e72d80ad4ac5ff3573796d07bd1a1e74909f94 (cvelist)
- Linux: 5.16 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-139517. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-139517.md
Affected: Linux >= 47d34aa2d211e9cef61dd85b7b0011c9f61dd0ae, < 047f4071139458b7f8640762308b2512bcfe2939; >= 47d34aa2d211e9cef61dd85b7b0011c9f61dd0ae, < 79b4b5b71dc695b6ada8be2260b768f9e64e83a6; >= 47d34aa2d211e9cef61dd85b7b0011c9f61dd0ae, < bb4e404e8fb75c159a2689573c307ca273986ab4; >= 47d34aa2d211e9cef61dd85…
Fixed in: Linux 047f4071139458b7f8640762308b2512bcfe2939, Linux 79b4b5b71dc695b6ada8be2260b768f9e64e83a6, Linux 5033a6b4d3e2432e073579ddf799621e170a8460

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-139517 being exploited?

There is no confirmed exploitation: CVE-2026-139517 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-139517?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-139517?

Linux \>= 47d34aa2d211e9cef61dd85b7b0011c9f61dd0ae, \< 047f4071139458b7f8640762308b2512bcfe2939; \>= 47d34aa2d211e9cef61dd85b7b0011c9f61dd0ae, \< 79b4b5b71dc695b6ada8be2260b768f9e64e83a6; \>= 47d34aa2d211e9cef61dd85b7b0011c9f61dd0ae, \< bb4e404e8fb75c159a2689573c307ca273986ab4; \>= 47d34aa2d211e9cef61dd85b7b0011c9f61dd0ae, \< e4767be464f2e48bdbe8e6b851e1f6553d4eafe5; \>= 47d34aa2d211e9cef61dd85b7b0011c9f61dd0ae, \< 5033a6b4d3e2432e073579ddf799621e170a8460; \>= 47d34aa2d211e9cef61dd85b7b0011c9f61dd0ae, \< f1e72d80ad4ac5ff3573796d07bd1a1e74909f94; Linux 5.16.

### Is there a fix for CVE-2026-139517?

Yes. Fixed in Linux 047f4071139458b7f8640762308b2512bcfe2939, Linux 79b4b5b71dc695b6ada8be2260b768f9e64e83a6, Linux 5033a6b4d3e2432e073579ddf799621e170a8460. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-139517?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/047f4071139458b7f8640762308b2512bcfe2939>
- other: <https://git.kernel.org/stable/c/79b4b5b71dc695b6ada8be2260b768f9e64e83a6>
- other: <https://git.kernel.org/stable/c/bb4e404e8fb75c159a2689573c307ca273986ab4>
- other: <https://git.kernel.org/stable/c/e4767be464f2e48bdbe8e6b851e1f6553d4eafe5>
- other: <https://git.kernel.org/stable/c/5033a6b4d3e2432e073579ddf799621e170a8460>
- other: <https://git.kernel.org/stable/c/f1e72d80ad4ac5ff3573796d07bd1a1e74909f94>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-139517>

HTML: <https://flawdb.com/CVE-2026-139517> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-139517>
