{"id":65550,"date":"2025-07-04T19:31:58","date_gmt":"2025-07-04T16:01:58","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2025-38230-linux-jfs-shift-out-of-bounds-vulnerability\/"},"modified":"2025-07-04T19:31:58","modified_gmt":"2025-07-04T16:01:58","slug":"cve-2025-38230-linux-jfs-shift-out-of-bounds-vulnerability","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2025-38230-linux-jfs-shift-out-of-bounds-vulnerability\/","title":{"rendered":"CVE-2025-38230 &#8211; Linux JFS Shift Out of Bounds Vulnerability"},"content":{"rendered":"<p><strong>CVE ID : <\/strong>CVE-2025-38230<br \/>\n<br \/>\n<strong>Published : <\/strong> July 4, 2025, 2:15 p.m. | 44\u00a0minutes ago<br \/>\n<br \/>\n<strong>Description : <\/strong>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>jfs: validate AG parameters in dbMount() to prevent crashes<\/p>\n<p>Validate db_agheight, db_agwidth, and db_agstart in dbMount to catch<br \/>\ncorrupted metadata early and avoid undefined behavior in dbAllocAG.<br \/>\nLimits are derived from L2LPERCTL, LPERCTL\/MAXAG, and CTLTREESIZE:<\/p>\n<p>&#8211; agheight: 0 to L2LPERCTL\/2 (0 to 5) ensures shift<br \/>\n  (L2LPERCTL &#8211; 2*agheight) &gt;= 0.<br \/>\n&#8211; agwidth: 1 to min(LPERCTL\/MAXAG, 2^(L2LPERCTL &#8211; 2*agheight))<br \/>\n  ensures agperlev &gt;= 1.<br \/>\n  &#8211; Ranges: 1-8 (agheight 0-3), 1-4 (agheight 4), 1 (agheight 5).<br \/>\n  &#8211; LPERCTL\/MAXAG = 1024\/128 = 8 limits leaves per AG;<br \/>\n    2^(10 &#8211; 2*agheight) prevents division to 0.<br \/>\n&#8211; agstart: 0 to CTLTREESIZE-1 &#8211; agwidth*(MAXAG-1) keeps ti within<br \/>\n  stree (size 1365).<br \/>\n  &#8211; Ranges: 0-1237 (agwidth 1), 0-348 (agwidth 8).<\/p>\n<p>UBSAN: shift-out-of-bounds in fs\/jfs\/jfs_dmap.c:1400:9<br \/>\nshift exponent -335544310 is negative<br \/>\nCPU: 0 UID: 0 PID: 5822 Comm: syz-executor130 Not tainted 6.14.0-rc5-syzkaller #0<br \/>\nHardware name: Google Compute Engine\/Google Compute Engine, BIOS Google 02\/12\/2025<br \/>\nCall Trace:<\/p>\n<p> __dump_stack lib\/dump_stack.c:94 [inline]\n dump_stack_lvl+0x241\/0x360 lib\/dump_stack.c:120<br \/>\n ubsan_epilogue lib\/ubsan.c:231 [inline]\n __ubsan_handle_shift_out_of_bounds+0x3c8\/0x420 lib\/ubsan.c:468<br \/>\n dbAllocAG+0x1087\/0x10b0 fs\/jfs\/jfs_dmap.c:1400<br \/>\n dbDiscardAG+0x352\/0xa20 fs\/jfs\/jfs_dmap.c:1613<br \/>\n jfs_ioc_trim+0x45a\/0x6b0 fs\/jfs\/jfs_discard.c:105<br \/>\n jfs_ioctl+0x2cd\/0x3e0 fs\/jfs\/ioctl.c:131<br \/>\n vfs_ioctl fs\/ioctl.c:51 [inline]\n __do_sys_ioctl fs\/ioctl.c:906 [inline]\n __se_sys_ioctl+0xf5\/0x170 fs\/ioctl.c:892<br \/>\n do_syscall_x64 arch\/x86\/entry\/common.c:52 [inline]\n do_syscall_64+0xf3\/0x230 arch\/x86\/entry\/common.c:83<br \/>\n entry_SYSCALL_64_after_hwframe+0x77\/0x7f<\/p>\n<p>Found by Linux Verification Center (linuxtesting.org) with Syzkaller.<br \/>\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-38230 Published : July 4, 2025, 2:15 p.m. | 44\u00a0minutes ago Description : In the Linux kernel, the following vulnerability has been resolved: jfs: validate AG parameters in dbMount() to prevent crashes Validate db_agheight, db_agwidth, and db_agstart in dbMount to catch corrupted metadata early and avoid undefined behavior in dbAllocAG. Limits are &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-65550","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/65550","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=65550"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/65550\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=65550"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=65550"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=65550"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}