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

Goal: 1000 CNY · Raised: 1020 CNY

100%

CVE-2024-38598— md: fix resync softlockup when bitmap size is less than array size

EPSS 0.03% · P9

Affected Version Matrix 22

VendorProductVersion RangeStatus
LinuxLinux374fb914304d9b500721007f3837ea8f1f9a2418< d4b9c764d48fa41caa24cfb4275f3aa9fb4bd798affected
b0b971fe7d61411ede63c3291764dbde1577ef2c< 43771597feba89a839c5f893716df88ae5c237ceaffected
39fa14e824acfd470db4f42c354297456bd82b53< 3f5b73ef8fd6268cbc968b308d8eafe56fda97f3affected
a134dd582c0d5b6068efa308bd485cf1d00b3f65< 69296914bfd508c85935bf5f711cad9b0fe78492affected
be1a3ec63a840cc9e59a033acf154f56255699a1< 71e8e4f288e74a896b6d9cd194f3bab12bd7a10faffected
301867b1c16805aebbc306aafa6ecdc68b73c7e5< c9566b812c8f66160466cc1e29df6d3646add0b1affected
301867b1c16805aebbc306aafa6ecdc68b73c7e5< 5817f43ae1a118855676f57ef7ab50e37eac7482affected
301867b1c16805aebbc306aafa6ecdc68b73c7e5< 8bbc71315e0ae4bb7e37f8d43b915e1cb01a481baffected
… +14 more rows
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2024-38598

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
md: fix resync softlockup when bitmap size is less than array size
Source: NVD (National Vulnerability Database)
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: md: fix resync softlockup when bitmap size is less than array size Is is reported that for dm-raid10, lvextend + lvchange --syncaction will trigger following softlockup: kernel:watchdog: BUG: soft lockup - CPU#3 stuck for 26s! [mdX_resync:6976] CPU: 7 PID: 3588 Comm: mdX_resync Kdump: loaded Not tainted 6.9.0-rc4-next-20240419 #1 RIP: 0010:_raw_spin_unlock_irq+0x13/0x30 Call Trace: <TASK> md_bitmap_start_sync+0x6b/0xf0 raid10_sync_request+0x25c/0x1b40 [raid10] md_do_sync+0x64b/0x1020 md_thread+0xa7/0x170 kthread+0xcf/0x100 ret_from_fork+0x30/0x50 ret_from_fork_asm+0x1a/0x30 And the detailed process is as follows: md_do_sync j = mddev->resync_min while (j < max_sectors) sectors = raid10_sync_request(mddev, j, &skipped) if (!md_bitmap_start_sync(..., &sync_blocks)) // md_bitmap_start_sync set sync_blocks to 0 return sync_blocks + sectors_skippe; // sectors = 0; j += sectors; // j never change Root cause is that commit 301867b1c168 ("md/raid10: check slab-out-of-bounds in md_bitmap_get_counter") return early from md_bitmap_get_counter(), without setting returned blocks. Fix this problem by always set returned blocks from md_bitmap_get_counter"(), as it used to be. Noted that this patch just fix the softlockup problem in kernel, the case that bitmap size doesn't match array size still need to be fixed.
Source: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于md_bitmap_get_counter中的一个提交提前返回,而没有设置返回的块,造成软死锁。
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

VendorProductAffected VersionsCPESubscribe
LinuxLinux 374fb914304d9b500721007f3837ea8f1f9a2418 ~ d4b9c764d48fa41caa24cfb4275f3aa9fb4bd798 -
LinuxLinux 6.5 -

II. Public POCs for CVE-2024-38598

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-38598

登录查看更多情报信息。

Same Patch Batch · Linux · 2024-06-19 · 122 CVEs total

CVE-2024-38611media: i2c: et8ek8: Don't strip remove function when driver is builtin
CVE-2021-47585btrfs: fix memory leak in __add_inode_ref()
CVE-2021-47584iocost: Fix divide-by-zero on donation from low hweight cgroup
CVE-2021-47582USB: core: Make do_proc_control() and do_proc_bulk() killable
CVE-2021-47583media: mxl111sf: change mutex_init() location
CVE-2021-47579ovl: fix warning in ovl_create_real()
CVE-2021-47580scsi: scsi_debug: Fix type in min_t to avoid stack OOB
CVE-2021-47578scsi: scsi_debug: Don't call kcalloc() if size arg is zero
CVE-2021-47576scsi: scsi_debug: Sanity check block descriptor length in resp_mode_select()
CVE-2021-47577io-wq: check for wq exit after adding new worker task_work
CVE-2024-38617kunit/fortify: Fix mismatched kvalloc()/vfree() usage
CVE-2024-38618ALSA: timer: Set lower bound of start tick time
CVE-2024-38616wifi: carl9170: re-fix fortified-memset warning
CVE-2024-38615cpufreq: exit() callback is optional
CVE-2024-38614openrisc: traps: Don't send signals to kernel mode threads
CVE-2024-38613m68k: Fix spinlock race in kernel thread creation
CVE-2024-38602ax25: Fix reference count leak issues of ax25_dev
CVE-2024-38603drivers/perf: hisi: hns3: Actually use devm_add_action_or_reset()
CVE-2024-38601ring-buffer: Fix a race between readers and resize checks
CVE-2024-38604block: refine the EOF check in blkdev_iomap_begin

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

IV. Related Vulnerabilities

V. Comments for CVE-2024-38598

No comments yet


Leave a comment