{"id":29149,"date":"2026-09-25T20:31:59","date_gmt":"2026-09-25T12:31:59","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-97993"},"modified":"2026-09-25T20:31:59","modified_gmt":"2026-09-25T12:31:59","slug":"cve-2026-97993","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-97993","title":{"rendered":"CVE-2026-97993 &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nvhost-vdpa: don&#8217;t ins"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>vhost-vdpa: don&#8217;t install the eventfd_ctx_fdget() error in config_ctx<\/p>\n<p>vhost_vdpa_set_config_call() swaps the eventfd_ctx_fdget() return value<br \/>\ninto v-&gt;config_ctx before checking it, so on failure the field briefly<br \/>\nholds an ERR_PTR:<\/p>\n<p>\tctx = fd == VHOST_FILE_UNBIND ? NULL : eventfd_ctx_fdget(fd);<br \/>\n\tswap(ctx, v-&gt;config_ctx);<\/p>\n<p>\tif (!IS_ERR_OR_NULL(ctx))<br \/>\n\t\teventfd_ctx_put(ctx);<\/p>\n<p>\tif (IS_ERR(v-&gt;config_ctx)) {<br \/>\n\t\tlong ret = PTR_ERR(v-&gt;config_ctx);<\/p>\n<p>\t\tv-&gt;config_ctx = NULL;<br \/>\n\t\treturn ret;<br \/>\n\t}<\/p>\n<p>Commit 0bde59c1723a (&#8220;vhost-vdpa: set v-&gt;config_ctx to NULL if<br \/>\neventfd_ctx_fdget() fails&#8221;) added that clearing, and spelled out the<br \/>\ninvariant the rest of the file relies on: &#8220;we consider &#8216;v-&gt;config_ctx&#8217;<br \/>\nvalid if it is not NULL&#8221;.  The window between the swap and the clearing<br \/>\nstill breaks it.  vhost_vdpa_config_cb() only tests for NULL, so a config<br \/>\ninterrupt delivered inside the window hands the ERR_PTR to<br \/>\neventfd_signal().<\/p>\n<p>Check the fd before installing it instead.  That closes the window and<br \/>\nmatches how vhost_vring_ioctl() handles the same failure for the vq call<br \/>\nfd.<\/p>\n<p>It also stops a rejected fd from tearing down a config interrupt that was<br \/>\nworking: until now the swap replaced the live context and put it, so<br \/>\nafter an EBADF the device silently stopped delivering config interrupts<br \/>\nuntil userspace installed a new fd.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>vhost-vdpa: don&#8217;t install the eventfd_ctx_fdget() error in config_ctx<\/p>\n<p>vhost_vdpa_set_config_call() swaps the eventfd_ctx_fdget() r<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-29149","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/29149","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=29149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=29149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=29149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}