Skip to content
Medium 4.7

fscrypt: Fix missing barrier in fscrypt_find_mode_key()

CVE-2026-99909 First seen on SecPulse

Affected packages

PackageAffected → Fixed
LinuxLinux —
LinuxKernel
≥ 6.12.97, < 6.12.117→ 6.12.117
≥ 6.18.39, < 6.18.63→ 6.18.63
≥ 7.1.3, < 7.2→ 7.2
≥ 7.2.0, < 7.3.4→ 7.3.4

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

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

fscrypt: Fix missing barrier in fscrypt_find_mode_key()

fscrypt_find_mode_key() walks an RCU list and hands out a per-mode
key without an acquire:

setup task

setup_per_mode_enc_key()
 ├─ fscrypt_prepare_key()
 │  └─ fscrypt_prepare_inline_crypt_key()
 │     └─ blk_crypto_start_using_key()
 │        └─ blk_crypto_fallback_start_using_mode()
 │           ├─ init profile, keyslots, tfms[]
 │           └─ smp_store_release(tfms_inited[mode])  # init order
 └─ list_add_tail_rcu(&new_node->link, ...)  # release -> finder

finding task (later submits the I/O itself)

fscrypt_find_mode_key()
├─ list_for_each_entry_rcu(node, ...)
└─ return &node->key # no acquire, chain breaks
...
blk_crypto_fallback_bio_prep() # WRITE path
├─ tfms_inited[mode] # addr-dep, reads true
├─ blk_crypto_fallback_profile # no dependency
├─ blk_crypto_keyslots # no dependency
└─ slotp->tfms[mode] # no dependency

RCU publishes the node and the key reachable from it, so
tfms_inited[mode] reads true through the address dependency. The
independent fallback globals are not covered by it and can be read as
uninitialized.

On a weakly ordered machine, a WRITE bio can crash in
blk_crypto_get_ke…

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details