{"id":"CVE-2026-99909","summary":"fscrypt: Fix missing barrier in fscrypt_find_mode_key()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nfscrypt: Fix missing barrier in fscrypt_find_mode_key()\n\nfscrypt_find_mode_key() walks an RCU list and hands out a per-mode\nkey without an acquire:\n\n  setup task\n  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n  setup_per_mode_enc_key()\n   ├─ fscrypt_prepare_key()\n   │  └─ fscrypt_prepare_inline_crypt_key()\n   │     └─ blk_crypto_start_using_key()\n   │        └─ blk_crypto_fallback_start_using_mode()\n   │           ├─ init profile, keyslots, tfms[]\n   │           └─ smp_store_release(tfms_inited[mode])  # init order\n   └─ list_add_tail_rcu(&new_node-\u003elink, ...)  # release -\u003e finder\n\n  finding task (later submits the I/O itself)\n  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n  fscrypt_find_mode_key()\n   ├─ list_for_each_entry_rcu(node, ...)\n   └─ return &node-\u003ekey                 # no acquire, chain breaks\n  ...\n  blk_crypto_fallback_bio_prep()        # WRITE path\n   ├─ tfms_inited[mode]                 # addr-dep, reads true\n   ├─ blk_crypto_fallback_profile       # no dependency\n   ├─ blk_crypto_keyslots               # no dependency\n   └─ slotp-\u003etfms[mode]                 # no dependency\n\nRCU publishes the node and the key reachable from it, so\ntfms_inited[mode] reads true through the address dependency.  The\nindependent fallback globals are not covered by it and can be read as\nuninitialized.\n\nOn a weakly ordered machine, a WRITE bio can crash in\nblk_crypto_get_keyslot() or crypto_sync_skcipher_setkey().\n\nOther tasks reach the key through fscrypt_inode_info's\ncmpxchg_release()/smp_load_acquire(), which is already ordered after\nthe list walk; only the finding task's own later I/O was not.\n\nFix this by upgrading the control dependency to an acquire with\nsmp_acquire__after_ctrl_dep() once a matching entry has been found.","modified":"2026-11-30T15:02:32.054799876Z","published":"2026-11-30T13:18:11.275Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99909.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bed2155d85a86568b4b867546f8fa60175c154af"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cf66375465b9ca531f5c294f468db1df293c178c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e87cd6f7507f682f0f32ef83917b6729738bce7c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e9520ef59b30c85b9e27503853202c3674eb3e04"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99909.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99909"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"eff39322a57ce396f6fa67a671f4c59af6c4b796"},{"fixed":"bed2155d85a86568b4b867546f8fa60175c154af"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"85f8b440a09bad8d8f75156c89f72ac37c9d0d48"},{"fixed":"e87cd6f7507f682f0f32ef83917b6729738bce7c"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"dd015b566d505d698386103e9c80b739c7336eb8"},{"fixed":"e9520ef59b30c85b9e27503853202c3674eb3e04"},{"fixed":"cf66375465b9ca531f5c294f468db1df293c178c"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"43e40c7a7b26d89d4bc268346962999d814ed8e3"}]}],"versions":["v6.12.116","v6.12.115","v6.12.114","v6.12.113","v6.12.112","v6.12.111","v6.12.110","v6.12.109","v6.12.108","v6.12.107","v6.12.106","v6.12.105","v6.12.104","v6.12.103","v6.12.102","v6.12.101","v6.12.100","v6.12.99","v6.12.98","v6.12.97","v6.18.62","v6.18.61","v6.18.60","v6.18.59","v6.18.58","v6.18.57","v6.18.56","v6.18.55","v6.18.54","v6.18.53","v6.18.52","v6.18.51","v6.18.50","v6.18.49","v6.18.48","v6.18.47","v6.18.46","v6.18.45","v6.18.44","v6.18.43","v6.18.42","v6.18.41","v6.18.40","v6.18.39","v7.1.13","v7.1.12","v7.1.11","v7.1.10","v7.1.9","v7.1.8","v7.1.7","v7.1.6","v7.1.5","v7.1.4","v7.1.3"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99909.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.12.97"},{"fixed":"6.12.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.18.39"},{"fixed":"6.18.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"7.1.3"},{"fixed":"7.2"}]},{"type":"ECOSYSTEM","events":[{"introduced":"7.2.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99909.json"}}],"schema_version":"1.9.2"}