{"id":65883,"date":"2025-07-09T16:33:21","date_gmt":"2025-07-09T13:03:21","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2025-38255-linux-kernel-null_blk-configfs-null-pointer-dereference-vulnerability\/"},"modified":"2025-07-09T16:33:21","modified_gmt":"2025-07-09T13:03:21","slug":"cve-2025-38255-linux-kernel-null_blk-configfs-null-pointer-dereference-vulnerability","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2025-38255-linux-kernel-null_blk-configfs-null-pointer-dereference-vulnerability\/","title":{"rendered":"CVE-2025-38255 &#8211; Linux Kernel null_blk Configfs Null Pointer Dereference Vulnerability"},"content":{"rendered":"<p><strong>CVE ID : <\/strong>CVE-2025-38255<br \/>\n<br \/>\n<strong>Published : <\/strong> July 9, 2025, 11:15 a.m. | 49\u00a0minutes ago<br \/>\n<br \/>\n<strong>Description : <\/strong>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>lib\/group_cpus: fix NULL pointer dereference from group_cpus_evenly()<\/p>\n<p>While testing null_blk with configfs, echo 0 &gt; poll_queues will trigger<br \/>\nfollowing panic:<\/p>\n<p>BUG: kernel NULL pointer dereference, address: 0000000000000010<br \/>\nOops: Oops: 0000 [#1] SMP NOPTI<br \/>\nCPU: 27 UID: 0 PID: 920 Comm: bash Not tainted 6.15.0-02023-gadbdb95c8696-dirty #1238 PREEMPT(undef)<br \/>\nHardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.1-2.fc37 04\/01\/2014<br \/>\nRIP: 0010:__bitmap_or+0x48\/0x70<br \/>\nCall Trace:<\/p>\n<p> __group_cpus_evenly+0x822\/0x8c0<br \/>\n group_cpus_evenly+0x2d9\/0x490<br \/>\n blk_mq_map_queues+0x1e\/0x110<br \/>\n null_map_queues+0xc9\/0x170 [null_blk]\n blk_mq_update_queue_map+0xdb\/0x160<br \/>\n blk_mq_update_nr_hw_queues+0x22b\/0x560<br \/>\n nullb_update_nr_hw_queues+0x71\/0xf0 [null_blk]\n nullb_device_poll_queues_store+0xa4\/0x130 [null_blk]\n configfs_write_iter+0x109\/0x1d0<br \/>\n vfs_write+0x26e\/0x6f0<br \/>\n ksys_write+0x79\/0x180<br \/>\n __x64_sys_write+0x1d\/0x30<br \/>\n x64_sys_call+0x45c4\/0x45f0<br \/>\n do_syscall_64+0xa5\/0x240<br \/>\n entry_SYSCALL_64_after_hwframe+0x76\/0x7e<\/p>\n<p>Root cause is that numgrps is set to 0, and ZERO_SIZE_PTR is returned from<br \/>\nkcalloc(), and later ZERO_SIZE_PTR will be deferenced.<\/p>\n<p>Fix the problem by checking numgrps first in group_cpus_evenly(), and<br \/>\nreturn NULL directly if numgrps is zero.<\/p>\n[yukuai3@huawei.com: also fix the non-SMP version]\n<br \/>\n<strong>Severity:<\/strong> 0.0 | NA<br \/>\n<br \/>\nVisit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID : CVE-2025-38255 Published : July 9, 2025, 11:15 a.m. | 49\u00a0minutes ago Description : In the Linux kernel, the following vulnerability has been resolved: lib\/group_cpus: fix NULL pointer dereference from group_cpus_evenly() While testing null_blk with configfs, echo 0 &gt; poll_queues will trigger following panic: BUG: kernel NULL pointer dereference, address: 0000000000000010 Oops: Oops: &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-65883","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/65883","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=65883"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/65883\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=65883"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=65883"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=65883"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}