目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1336

100%

CVE-2024-42111— Linux kernel 安全漏洞

CVSS 7.8 · High EPSS 0.21% · P11

影响版本矩阵 8

厂商产品版本范围状态
LinuxLinuxb5357cb268c41b4e2b7383d2759fc562f5b58c33< ebe5ea02577b2c527958af1b76ac472c7ab53a56affected
b5357cb268c41b4e2b7383d2759fc562f5b58c33< 724d8042cef84496ddb4492dc120291f997ae26baffected
c839f73a70f312f477225b64020364e108f08231affected
6.8.10< 6.9affected
6.9affected
< 6.9unaffected
6.9.9≤ 6.9.*unaffected
6.10≤ *unaffected
获取后续新漏洞提醒登录后订阅

一、 漏洞 CVE-2024-42111 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
btrfs: always do the basic checks for btrfs_qgroup_inherit structure
来源: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: btrfs: always do the basic checks for btrfs_qgroup_inherit structure [BUG] Syzbot reports the following regression detected by KASAN: BUG: KASAN: slab-out-of-bounds in btrfs_qgroup_inherit+0x42e/0x2e20 fs/btrfs/qgroup.c:3277 Read of size 8 at addr ffff88814628ca50 by task syz-executor318/5171 CPU: 0 PID: 5171 Comm: syz-executor318 Not tainted 6.10.0-rc2-syzkaller-00010-g2ab795141095 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Call Trace: <TASK> __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 print_address_description mm/kasan/report.c:377 [inline] print_report+0x169/0x550 mm/kasan/report.c:488 kasan_report+0x143/0x180 mm/kasan/report.c:601 btrfs_qgroup_inherit+0x42e/0x2e20 fs/btrfs/qgroup.c:3277 create_pending_snapshot+0x1359/0x29b0 fs/btrfs/transaction.c:1854 create_pending_snapshots+0x195/0x1d0 fs/btrfs/transaction.c:1922 btrfs_commit_transaction+0xf20/0x3740 fs/btrfs/transaction.c:2382 create_snapshot+0x6a1/0x9e0 fs/btrfs/ioctl.c:875 btrfs_mksubvol+0x58f/0x710 fs/btrfs/ioctl.c:1029 btrfs_mksnapshot+0xb5/0xf0 fs/btrfs/ioctl.c:1075 __btrfs_ioctl_snap_create+0x387/0x4b0 fs/btrfs/ioctl.c:1340 btrfs_ioctl_snap_create_v2+0x1f2/0x3a0 fs/btrfs/ioctl.c:1422 btrfs_ioctl+0x99e/0xc60 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fcbf1992509 RSP: 002b:00007fcbf1928218 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fcbf1a1f618 RCX: 00007fcbf1992509 RDX: 0000000020000280 RSI: 0000000050009417 RDI: 0000000000000003 RBP: 00007fcbf1a1f610 R08: 00007ffea1298e97 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fcbf19eb660 R13: 00000000200002b8 R14: 00007fcbf19e60c0 R15: 0030656c69662f2e </TASK> And it also pinned it down to commit b5357cb268c4 ("btrfs: qgroup: do not check qgroup inherit if qgroup is disabled"). [CAUSE] That offending commit skips the whole qgroup inherit check if qgroup is not enabled. But that also skips the very basic checks like num_ref_copies/num_excl_copies and the structure size checks. Meaning if a qgroup enable/disable race is happening at the background, and we pass a btrfs_qgroup_inherit structure when the qgroup is disabled, the check would be completely skipped. Then at the time of transaction commitment, qgroup is re-enabled and btrfs_qgroup_inherit() is going to use the incorrect structure and causing the above KASAN error. [FIX] Make btrfs_qgroup_check_inherit() only skip the source qgroup checks. So that even if invalid btrfs_qgroup_inherit structure is passed in, we can still reject invalid ones no matter if qgroup is enabled or not. Furthermore we do already have an extra safety inside btrfs_qgroup_inherit(), which would just ignore invalid qgroup sources, so even if we only skip the qgroup source check we're still safe.
来源: 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
来源: CVE Program / CVE List V5
Vulnerability Type
N/A
来源: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel 存在安全漏洞,该漏洞源于btrfs模块中在使用btrfs_qgroup_inherit结构时,如果qgroup被禁用,将跳过基本检查,如num_ref_copies/num_excl_copies和结构大小检查。
来源: 中国国家信息安全漏洞库 CNNVD
CVSS Information
N/A
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Type
N/A
来源: 中国国家信息安全漏洞库 CNNVD

受影响产品

厂商产品影响版本CPE订阅
LinuxLinux b5357cb268c41b4e2b7383d2759fc562f5b58c33 ~ ebe5ea02577b2c527958af1b76ac472c7ab53a56 -
LinuxLinux 6.9 -

二、漏洞 CVE-2024-42111 的公开POC

#POC 描述源链接神龙链接
AI 生成 POC高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2024-42111 的情报信息

登录查看更多情报信息。

CVE-2024-42111 其他参考 (2)

同批安全公告 · Linux · 2024-07-30 · 共 70 条

CVE-2024-421089.8 CRITICALLinux kernel 安全漏洞
CVE-2024-422258.3 HIGHLinux kernel 安全漏洞
CVE-2024-421207.8 HIGHLinux kernel 安全漏洞
CVE-2024-421177.8 HIGHLinux kernel 安全漏洞
CVE-2024-421157.8 HIGHLinux kernel 安全漏洞
CVE-2024-421127.8 HIGHLinux kernel 安全漏洞
CVE-2024-421097.8 HIGHLinux kernel 安全漏洞
CVE-2024-421057.8 HIGHLinux kernel 安全漏洞
CVE-2024-421047.8 HIGHLinux kernel 安全漏洞
CVE-2024-421037.8 HIGHLinux kernel 安全漏洞
CVE-2024-421627.8 HIGHLinux kernel 安全漏洞
CVE-2024-420997.8 HIGHLinux kernel 安全漏洞
CVE-2024-421327.6 HIGHLinux kernel 安全漏洞
CVE-2024-421337.6 HIGHLinux kernel 安全漏洞
CVE-2024-421107.5 HIGHLinux kernel 安全漏洞
CVE-2024-421527.5 HIGHLinux kernel 安全漏洞
CVE-2024-421457.5 HIGHLinux kernel 安全漏洞
CVE-2024-421237.0 HIGHLinux kernel 安全漏洞
CVE-2024-422247.0 HIGHLinux kernel 安全漏洞
CVE-2024-42161Linux kernel 安全漏洞

显示前 20 条,共 70 条。 查看全部 &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2024-42111

暂无评论


发表评论