{"id":"CVE-2026-64192","aliases":["CVE-2026-64192"],"related":[],"kind":"vulnerability","state":"published","title":"bpf: Reject BPF_MAP_TYPE_INODE_STORAGE creation if BPF LSM is uninitialized","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Reject BPF_MAP_TYPE_INODE_STORAGE creation if BPF LSM is uninitialized\n\nWhen CONFIG_BPF_LSM=y is set, BPF inode storage maps\n(BPF_MAP_TYPE_INODE_STORAGE) are compiled into the kernel. However,\nif the BPF LSM is not explicitly enabled at boot time (e.g. omitted\nfrom the \"lsm=\" boot parameter), lsm_prepare() is never executed for\nthe BPF LSM.\n\nConsequently, the BPF inode security blob offset\n(bpf_lsm_blob_sizes.lbs_inode) is never initialized and remains at\nits default compiled size of 8 bytes instead of being updated to a\nvalid offset past the reserved struct rcu_head (typically 16 bytes\nor more).\n\nWhen a privileged user creates and updates a BPF_MAP_TYPE_INODE_STORAGE\nmap, bpf_inode() evaluates inode->i_security + 8. This erroneously\naliases the struct rcu_head.func callback pointer at the beginning\nof the inode->i_security blob. During subsequent map element cleanup\nor inode destruction, writing NULL to owner_storage clears the queued\nRCU callback pointer. When rcu_do_batch() later executes the queued\ncallback, it attempts an instruction fetch at address 0x0, triggering\nan immediate kernel panic.\n\nFix this by introducing a global bpf_lsm_initialized boolean flag\nmarked with __ro_after_init. Set this flag to true inside bpf_lsm_init()\nwhen the LSM framework successfully registers the BPF LSM. Gate map\nallocation in inode_storage_map_alloc() on this flag, returning\n-EOPNOTSUPP if the BPF LSM is in turn uninitialized.\n\nThis fail-fast approach prevents userspace from allocating inode\nstorage maps when the supporting BPF LSM infrastructure is absent,\navoiding zombie map states.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Reject BPF_MAP_TYPE_INODE_STORAGE creation if BPF LSM is uninitialized\n\nWhen CONFIG_BPF_LSM=y is set, BPF inode storage maps\n(BPF_MAP_TYPE_INODE_STORAGE) are compiled into the kernel. However,\nif the BPF LSM is not explicitly enabled at boot time (e.g. omitted\nfrom the \"lsm=\" boot parameter), lsm_prepare() is never executed for\nthe BPF LSM.\n\nConsequently, the BPF inode security blob offset\n(bpf_lsm_blob_sizes.lbs_inode) is never initialized and remains at\nits default compiled size of 8 bytes instead of being updated to a\nvalid offset past the reserved struct rcu_head (typically 16 bytes\nor more).\n\nWhen a privileged user creates and updates a BPF_MAP_TYPE_INODE_STORAGE\nmap, bpf_inode() evaluates inode->i_security + 8. This erroneously\naliases the struct rcu_head.func callback pointer at the beginning\nof the inode->i_security blob. During subsequent map element cleanup\nor inode destruction, writing NULL to owner_storage clears the queued\nRCU callback pointer. When rcu_do_batch() later executes the queued\ncallback, it attempts an instruction fetch at address 0x0, triggering\nan immediate kernel panic.\n\nFix this by introducing a global bpf_lsm_initialized boolean flag\nmarked with __ro_after_init. Set this flag to true inside bpf_lsm_init()\nwhen the LSM framework successfully registers the BPF LSM. Gate map\nallocation in inode_storage_map_alloc() on this flag, returning\n-EOPNOTSUPP if the BPF LSM is in turn uninitialized.\n\nThis fail-fast approach prevents userspace from allocating inode\nstorage maps when the supporting BPF LSM infrastructure is absent,\navoiding zombie map states.","source":"cvelist"}],"published":"2026-07-20T16:27:51.720Z","modified":"2026-11-06T17:18:40.590Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"8ea636848aca35b9f97c5b5dee30225cf2dd0fe6","fixed":"413b14b9623a2e6ee131c2b2152b304aeb04e378","status":"affected"},{"type":"git","introduced":"8ea636848aca35b9f97c5b5dee30225cf2dd0fe6","fixed":"a6d634f794c808a261eac7d5af023a7e06b9ecd8","status":"affected"},{"type":"git","introduced":"8ea636848aca35b9f97c5b5dee30225cf2dd0fe6","fixed":"721f669853bdbf46b475a81bb5d05d610f8c19de","status":"affected"},{"type":"git","introduced":"8ea636848aca35b9f97c5b5dee30225cf2dd0fe6","fixed":"5337eebdf8c5d4810b1913047f078d2815d5645f","status":"affected"},{"type":"git","introduced":"8ea636848aca35b9f97c5b5dee30225cf2dd0fe6","fixed":"de984ea883405420fdc416ae8964b752df586970","status":"affected"},{"type":"git","introduced":"8ea636848aca35b9f97c5b5dee30225cf2dd0fe6","fixed":"267fdd9b6530c399dfd996e1a0a7628b45baf9f0","status":"affected"},{"type":"git","introduced":"8ea636848aca35b9f97c5b5dee30225cf2dd0fe6","fixed":"c76b8abce575e0c6e4096957220b4515ed847d89","status":"affected"},{"type":"git","introduced":"8ea636848aca35b9f97c5b5dee30225cf2dd0fe6","fixed":"a6f0643e4f63cfaa0d5d4a69de4f132eac4b8fe4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.10","status":"unaffected"},{"type":"semver","introduced":"5.10.266","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.217","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.184","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.148","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.97","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.40","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.4","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.10","fixed":"6.6.148"},{"status":"affected","introduced":"6.7","fixed":"6.12.97"},{"status":"affected","introduced":"6.13","fixed":"6.18.40"},{"status":"affected","introduced":"6.19","fixed":"7.1.4"},{"status":"affected","version":"7.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/413b14b9623a2e6ee131c2b2152b304aeb04e378","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a6d634f794c808a261eac7d5af023a7e06b9ecd8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/721f669853bdbf46b475a81bb5d05d610f8c19de","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5337eebdf8c5d4810b1913047f078d2815d5645f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/de984ea883405420fdc416ae8964b752df586970","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/267fdd9b6530c399dfd996e1a0a7628b45baf9f0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c76b8abce575e0c6e4096957220b4515ed847d89","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a6f0643e4f63cfaa0d5d4a69de4f132eac4b8fe4","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-06T16:32:03.849Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-64192","url":"https://www.cve.org/CVERecord?id=CVE-2026-64192","licence":"CVE Terms of Use","modified":"2026-11-06T16:34:29.631Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-64192","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64192","licence":"Public domain","modified":"2026-11-06T17:18:40.590Z"}],"updatedAt":"2026-11-25T22:59:29.263Z","epss":{"score":0.00161,"percentile":0.05555,"date":"2026-12-01T12:00:22.000Z"}}