{"id":41247,"date":"2026-10-19T00:32:48","date_gmt":"2026-10-18T16:32:48","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-98775"},"modified":"2026-10-19T00:32:48","modified_gmt":"2026-10-18T16:32:48","slug":"cve-2026-98775","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-98775","title":{"rendered":"CVE-2026-98775 &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nnitro_enclaves: fix u"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>nitro_enclaves: fix use-after-free on SLOT_ALLOC failure<\/p>\n<p>When ne_create_vm_ioctl() fails the SLOT_ALLOC request after<br \/>\nanon_inode_getfile() has succeeded, the error path calls<br \/>\nfput(enclave_file) and then frees ne_enclave.<\/p>\n<p>In normal userspace context, fput() defers the final __fput() via<br \/>\ntask_work. ne_enclave_release() therefore runs after ne_enclave has<br \/>\nalready been freed and dereferences ne_enclave-&gt;slot_uid, causing a<br \/>\nuse-after-free: KASAN: slab-use-after-free in ne_enclave_release.<\/p>\n<p>The enclave has no slot allocated and is not yet linked into the<br \/>\nenclaves list on this error path, so ne_enclave_release() is expected<br \/>\nto return early when slot_uid is zero. However, reading slot_uid<br \/>\nalready accesses the freed object.<\/p>\n<p>Clear enclave_file-&gt;private_data before fput() on the error path.<br \/>\nne_enclave_release() then returns immediately when private_data is<br \/>\nNULL, leaving the ioctl error path as the sole owner of ne_enclave.<br \/>\nThis is safe because the file has not been fd_install()&#8217;d yet.<\/p>\n<p>Tested on an AWS EC2 m5.2xlarge with CONFIG_KASAN=y. Without the<br \/>\npatch, the reproducer triggers a KASAN slab-use-after-free on every<br \/>\nSLOT_ALLOC failure. With the patch, no KASAN report is produced and<br \/>\nthe SLOT_ALLOC error is still returned. Normal enclave creation and<br \/>\nteardown are unaffected.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>nitro_enclaves: fix use-after-free on SLOT_ALLOC failure<\/p>\n<p>When ne_create_vm_ioctl() fails the SLOT_ALLOC request after<br \/>\nanon_inode_g<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-41247","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/41247","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=41247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=41247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=41247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}