Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2023-52604— FS:JFS:UBSAN:array-index-out-of-bounds in dbAdjTree

Quick assessment

Affected
Linux Linux
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于存在数组索引越界问题。

CVSS 7.8 · High EPSS 0.25% · P15

Affected Version Matrix 18

VendorProduct Version RangeStatus
Linux Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2< e3e95c6850661c77e6dab079d9b5374a618ebb15 affected
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2< 98f9537fe61b8382b3cc5dd97347531698517c56 affected
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2< de34de6e57bbbc868e4fcf9e98c76b3587cabb0b affected
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2< 6fe8b702125aeee6ce83f20092a2341446704e7b affected
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2< 42f433785f108893de0dd5260bafb85d7d51db03 affected
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2< 6a44065dd604972ec1fbcccbdc4a70d266a89cdd affected
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2< 59342822276f753e49d27ef5eebffbba990572b9 affected
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2< 9862ec7ac1cbc6eb5ee4a045b5d5b8edbb2f7e68 affected
… +10 more rows
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2023-52604

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
FS:JFS:UBSAN:array-index-out-of-bounds in dbAdjTree
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: FS:JFS:UBSAN:array-index-out-of-bounds in dbAdjTree Syzkaller reported the following issue: UBSAN: array-index-out-of-bounds in fs/jfs/jfs_dmap.c:2867:6 index 196694 is out of range for type 's8[1365]' (aka 'signed char[1365]') CPU: 1 PID: 109 Comm: jfsCommit Not tainted 6.6.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 Call Trace: <TASK> __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 ubsan_epilogue lib/ubsan.c:217 [inline] __ubsan_handle_out_of_bounds+0x11c/0x150 lib/ubsan.c:348 dbAdjTree+0x474/0x4f0 fs/jfs/jfs_dmap.c:2867 dbJoin+0x210/0x2d0 fs/jfs/jfs_dmap.c:2834 dbFreeBits+0x4eb/0xda0 fs/jfs/jfs_dmap.c:2331 dbFreeDmap fs/jfs/jfs_dmap.c:2080 [inline] dbFree+0x343/0x650 fs/jfs/jfs_dmap.c:402 txFreeMap+0x798/0xd50 fs/jfs/jfs_txnmgr.c:2534 txUpdateMap+0x342/0x9e0 txLazyCommit fs/jfs/jfs_txnmgr.c:2664 [inline] jfs_lazycommit+0x47a/0xb70 fs/jfs/jfs_txnmgr.c:2732 kthread+0x2d3/0x370 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 </TASK> ================================================================================ Kernel panic - not syncing: UBSAN: panic_on_warn set ... CPU: 1 PID: 109 Comm: jfsCommit Not tainted 6.6.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 Call Trace: <TASK> __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 panic+0x30f/0x770 kernel/panic.c:340 check_panic_on_warn+0x82/0xa0 kernel/panic.c:236 ubsan_epilogue lib/ubsan.c:223 [inline] __ubsan_handle_out_of_bounds+0x13c/0x150 lib/ubsan.c:348 dbAdjTree+0x474/0x4f0 fs/jfs/jfs_dmap.c:2867 dbJoin+0x210/0x2d0 fs/jfs/jfs_dmap.c:2834 dbFreeBits+0x4eb/0xda0 fs/jfs/jfs_dmap.c:2331 dbFreeDmap fs/jfs/jfs_dmap.c:2080 [inline] dbFree+0x343/0x650 fs/jfs/jfs_dmap.c:402 txFreeMap+0x798/0xd50 fs/jfs/jfs_txnmgr.c:2534 txUpdateMap+0x342/0x9e0 txLazyCommit fs/jfs/jfs_txnmgr.c:2664 [inline] jfs_lazycommit+0x47a/0xb70 fs/jfs/jfs_txnmgr.c:2732 kthread+0x2d3/0x370 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 </TASK> Kernel Offset: disabled Rebooting in 86400 seconds.. The issue is caused when the value of lp becomes greater than CTLTREESIZE which is the max size of stree. Adding a simple check solves this issue. Dave: As the function returns a void, good error handling would require a more intrusive code reorganization, so I modified Osama's patch at use WARN_ON_ONCE for lack of a cleaner option. The patch is tested via syzbot.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于存在数组索引越界问题。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Linux Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 ~ e3e95c6850661c77e6dab079d9b5374a618ebb15 -
Linux Linux 2.6.12 -

II. Public POCs for CVE-2023-52604

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2023-52604

请登录查看更多情报信息。

Mailing List Discussions for CVE-2023-52604 (2)

Other References for CVE-2023-52604 (7)

Same Patch Batch · Linux · 2024-03-06 · 27 CVEs total

CVE-2023-52586 7.8 HIGH drm/msm/dpu: Add mutex lock in control vblank irq
CVE-2024-26625 7.8 HIGH llc: call sock_orphan() at release time
CVE-2024-26623 7.8 HIGH pds_core: Prevent race issues involving the adminq
CVE-2023-52590 7.8 HIGH ocfs2: Avoid touching renamed directory if parent does not change
CVE-2023-52591 7.8 HIGH reiserfs: Avoid touching renamed directory if parent does not change
CVE-2023-52606 7.8 HIGH powerpc/lib: Validate size for vector operations
CVE-2023-52603 7.8 HIGH UBSAN: array-index-out-of-bounds in dtSplitRoot
CVE-2023-52602 7.8 HIGH jfs: fix slab-out-of-bounds Read in dtSearch
CVE-2023-52601 7.8 HIGH jfs: fix array-index-out-of-bounds in dbAdjTree
CVE-2023-52600 7.8 HIGH jfs: fix uaf in jfs_evict_inode
CVE-2023-52599 7.8 HIGH jfs: fix array-index-out-of-bounds in diNewExt
CVE-2024-26626 7.5 HIGH ipmr: fix kernel panic when forwarding mcast packets
CVE-2023-52588 7.3 HIGH f2fs: fix to tag gcing flag on page during block migration
CVE-2023-52597 KVM: s390: fix setting of fpc register
CVE-2024-26627 scsi: core: Move scsi_host_busy() out of host lock for waking up EH handler
CVE-2023-52607 powerpc/mm: Fix null-pointer dereference in pgtable_cache_add
CVE-2023-52598 s390/ptrace: handle setting of fpc register correctly
CVE-2023-52583 ceph: fix deadlock or deadcode of misusing dget()
CVE-2023-52596 sysctl: Fix out of bounds access for empty sysctl registers
CVE-2023-52595 wifi: rt2x00: restart beacon queue when hardware reset

Showing top 20 of 27 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2023-52604

No comments yet


Leave a comment