CVE-2026-139014: f2fs: drop pending discard commands before reserving device alias

Published Nov 30, 2026
·
Updated

f2fs: drop pending discard commands before reserving device alias

Affected Software

4 affected componentsFixes available
Linux Linux kernel
linux/kernel>=7.3.0<7.3.4
7.3.4
debian/linux<7.3.4-1
7.3.4-1
debian/linux
7.3.4-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 7.3.4
  2. Upgrade

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

    Fixed in 7.3.4-1
  3. Compensating control

    In f2fs_ioc_reserve_dev_alias(), before f2fs_reserve_device_alias(), call f2fs_drop_discard_cmd_range() to traverse the discard rbtree, drop pending D_PREP discard commands for the target range, and wait for in-flight discard bios under dcc->cmd_lock.

Event History

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

Frequently Asked Questions

1

What conditions are required to trigger the kernel BUG?

The system must use F2FS and reserve a device alias for a device range that was previously released. Stale pending D_PREP discard commands must still cover that range when the alias reservation marks its blocks valid in SIT.

2

What is the impact if the vulnerable path is reached?

When the discard thread later processes the stale commands, its consistency check finds valid blocks in the discard range and triggers a kernel BUG(). This can cause a kernel crash.

3

How does the fix prevent the issue?

Before reserving the device alias, the fix removes pending D_PREP discard commands for the affected range and waits for in-flight discard bios while holding the discard-command lock. The alias reservation then cannot leave stale discard work targeting blocks newly marked valid.

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