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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2024-35832— bcachefs: kvfree bch_fs::snapshots in bch2_fs_snapshots_exit

AI Predicted 4.7 Difficulty: Trivial EPSS 0.18% · P8

Possible ATT&CK Techniques 1AI

T1499 · Endpoint Denial of Service

Affected Version Matrix 6

VendorProductVersion RangeStatus
LinuxLinux1c6fdbd8f2465ddfb73a01ec620cbf3d14044e1a< 56590678791119b9a655202e49898edfb9307271affected
1c6fdbd8f2465ddfb73a01ec620cbf3d14044e1a< 369acf97d6fd5da620d053d0f1878ffe32eff555affected
6.7affected
< 6.7unaffected
6.7.5≤ 6.7.*unaffected
6.8≤ *unaffected
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2024-35832

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
bcachefs: kvfree bch_fs::snapshots in bch2_fs_snapshots_exit
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: bcachefs: kvfree bch_fs::snapshots in bch2_fs_snapshots_exit bch_fs::snapshots is allocated by kvzalloc in __snapshot_t_mut. It should be freed by kvfree not kfree. Or umount will triger: [ 406.829178 ] BUG: unable to handle page fault for address: ffffe7b487148008 [ 406.830676 ] #PF: supervisor read access in kernel mode [ 406.831643 ] #PF: error_code(0x0000) - not-present page [ 406.832487 ] PGD 0 P4D 0 [ 406.832898 ] Oops: 0000 [#1] PREEMPT SMP PTI [ 406.833512 ] CPU: 2 PID: 1754 Comm: umount Kdump: loaded Tainted: G OE 6.7.0-rc7-custom+ #90 [ 406.834746 ] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Arch Linux 1.16.3-1-1 04/01/2014 [ 406.835796 ] RIP: 0010:kfree+0x62/0x140 [ 406.836197 ] Code: 80 48 01 d8 0f 82 e9 00 00 00 48 c7 c2 00 00 00 80 48 2b 15 78 9f 1f 01 48 01 d0 48 c1 e8 0c 48 c1 e0 06 48 03 05 56 9f 1f 01 <48> 8b 50 08 48 89 c7 f6 c2 01 0f 85 b0 00 00 00 66 90 48 8b 07 f6 [ 406.837810 ] RSP: 0018:ffffb9d641607e48 EFLAGS: 00010286 [ 406.838213 ] RAX: ffffe7b487148000 RBX: ffffb9d645200000 RCX: ffffb9d641607dc4 [ 406.838738 ] RDX: 000065bb00000000 RSI: ffffffffc0d88b84 RDI: ffffb9d645200000 [ 406.839217 ] RBP: ffff9a4625d00068 R08: 0000000000000001 R09: 0000000000000001 [ 406.839650 ] R10: 0000000000000001 R11: 000000000000001f R12: ffff9a4625d4da80 [ 406.840055 ] R13: ffff9a4625d00000 R14: ffffffffc0e2eb20 R15: 0000000000000000 [ 406.840451 ] FS: 00007f0a264ffb80(0000) GS:ffff9a4e2d500000(0000) knlGS:0000000000000000 [ 406.840851 ] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 406.841125 ] CR2: ffffe7b487148008 CR3: 000000018c4d2000 CR4: 00000000000006f0 [ 406.841464 ] Call Trace: [ 406.841583 ] <TASK> [ 406.841682 ] ? __die+0x1f/0x70 [ 406.841828 ] ? page_fault_oops+0x159/0x470 [ 406.842014 ] ? fixup_exception+0x22/0x310 [ 406.842198 ] ? exc_page_fault+0x1ed/0x200 [ 406.842382 ] ? asm_exc_page_fault+0x22/0x30 [ 406.842574 ] ? bch2_fs_release+0x54/0x280 [bcachefs] [ 406.842842 ] ? kfree+0x62/0x140 [ 406.842988 ] ? kfree+0x104/0x140 [ 406.843138 ] bch2_fs_release+0x54/0x280 [bcachefs] [ 406.843390 ] kobject_put+0xb7/0x170 [ 406.843552 ] deactivate_locked_super+0x2f/0xa0 [ 406.843756 ] cleanup_mnt+0xba/0x150 [ 406.843917 ] task_work_run+0x59/0xa0 [ 406.844083 ] exit_to_user_mode_prepare+0x197/0x1a0 [ 406.844302 ] syscall_exit_to_user_mode+0x16/0x40 [ 406.844510 ] do_syscall_64+0x4e/0xf0 [ 406.844675 ] entry_SYSCALL_64_after_hwframe+0x6e/0x76 [ 406.844907 ] RIP: 0033:0x7f0a2664e4fb
Source: CVE Program / CVE List V5
CVSS Information
N/A
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存在安全漏洞,该漏洞源于使用kfree 释放内存,而不是kvfree。
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 1c6fdbd8f2465ddfb73a01ec620cbf3d14044e1a ~ 56590678791119b9a655202e49898edfb9307271 -
LinuxLinux 6.7 -

II. Public POCs for CVE-2024-35832

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-35832

登录查看更多情报信息。

Other References for CVE-2024-35832 (2)

Same Patch Batch · Linux · 2024-05-17 · 135 CVEs total

CVE-2023-526879.8 CRITICALcrypto: safexcel - Add error handling for dma_map_sg() calls
CVE-2024-358438.8 HIGHiommu/vt-d: Use device rbtree in iopf reporting path
CVE-2024-358048.8 HIGHKVM: x86: Mark target gfn of emulated atomic instruction as dirty
CVE-2024-358118.8 HIGHwifi: brcmfmac: Fix use-after-free bug in brcmf_cfg80211_detach
CVE-2024-274168.8 HIGHBluetooth: hci_event: Fix handling of HCI_EV_IO_CAPA_REQUEST
CVE-2024-274158.8 HIGHnetfilter: bridge: confirm multicast packets before passing them up the stack
CVE-2024-358568.8 HIGHBluetooth: btusb: mediatek: Fix double free of skb in coredump
CVE-2024-358348.2 HIGHxsk: recycle buffer in case Rx queue was full
CVE-2024-274048.2 HIGHmptcp: fix data races on remote_id
CVE-2023-526698.2 HIGHcrypto: s390/aes - Fix buffer overread in CTR mode
CVE-2024-357898.0 HIGHwifi: mac80211: check/clear fast rx for non-4addr sta VLAN changes
CVE-2024-357937.8 HIGHdebugfs: fix wait/cancellation handling during remove
CVE-2023-526647.8 HIGHnet: atlantic: eliminate double free in error handling logic
CVE-2024-358107.8 HIGHdrm/vmwgfx: Fix the lifetime of the bo cursor memory
CVE-2024-358087.8 HIGHmd/dm-raid: don't call md_reap_sync_thread() directly
CVE-2023-526677.8 HIGHnet/mlx5e: fix a potential double-free in fs_any_create_groups
CVE-2024-357987.8 HIGHbtrfs: fix race in read_extent_buffer_pages()
CVE-2024-357917.8 HIGHKVM: SVM: Flush pages under kvm->lock to fix UAF in svm_register_enc_region()
CVE-2024-358397.8 HIGHnetfilter: bridge: replace physindev with physinif in nf_bridge_info
CVE-2024-358357.8 HIGHnet/mlx5e: fix a double-free in arfs_create_groups

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

IV. Related Vulnerabilities

V. Comments for CVE-2024-35832

No comments yet


Leave a comment