CVE-2026-93049: mtd: mtdswap: Avoid freeing registered blktrans device twice

Published Sep 17, 2026
·
Updated

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

mtd: mtdswap: Avoid freeing registered blktrans device twice

In mtdswapaddmtd(), debugfs setup failure after successful blktrans registration can free mbddev twice.

addmtdblktransdev() initializes the blktrans device reference and publishes the disk. Once that succeeds, delmtdblktransdev() tears the disk down and drops the blktrans reference; when that reference reaches zero, blktransdevrelease() frees the mtdblktransdev.

The debugfs failure path called delmtdblktransdev(mbddev), then fell through the common cleanup label and called kfree(mbddev) again. Clear the local pointer after deregistration so the common cleanup can still release the mtdswap state without freeing the blktrans object twice.

This issue was found by a static analysis checker and confirmed by manual source review.

Event History

Sep 17, 2026
CVE Published
via MITRE·04:10 PM
Data Sourced
via MITRE·04:10 PM
Description

Frequently Asked Questions

1

Does this require a debugfs setup failure to occur?

Yes. The double-free path is reached when debugfs setup fails after the blktrans device has already been successfully registered and published.

2

Is successful blktrans registration alone enough to trigger the issue?

No. The affected path requires subsequent debugfs setup failure; deregistration then frees the blktrans object, and the common cleanup path attempts to free it again.

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