CVE-2024-36915·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: nfc: llcp: fix nfc_llcp_setsockopt() unsafe copies syzbot reported unsafe calls to copy_from_sockptr() [1] Use copy_safe_from_sockptr() instead. [1] BUG: KASAN: slab-out-of-bounds in copy_from_sockptr_offset include/linux/sockptr.h:49 [inline] BUG: KASAN: slab-out-of-bounds in copy_from_sockptr include/linux/sockptr.h:55 [inline] BUG: KASAN: slab-out-of-bounds in nfc_llcp_setsockopt+0x6c2/0x850 net/nfc/llcp_sock.c:255 Read of size 4 at addr ffff88801caa1ec3 by task syz-executor459/5078 CPU: 0 PID: 5078 Comm: syz-executor459 Not tainted 6.8.0-syzkaller-08951-gfe46a7dd189e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/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 copy_from_sockptr_offset include/linux/sockptr.h:49 [inline] copy_from_sockptr include/linux/sockptr.h:55 [inline] nfc_llcp_setsockopt+0x6c2/0x850 net/nfc/llcp_sock.c:255 do_sock_setsockopt+0x3b1/0x720 net/socket.c:2311 __sys_setsockopt+0x1ae/0x250 net/socket.c:2334 __do_sys_setsockopt net/socket.c:2343 [inline] __se_sys_setsockopt net/socket.c:2340 [inline] __x64_sys_setsockopt+0xb5/0xd0 net/socket.c:2340 do_syscall_64+0xfd/0x240 entry_SYSCALL_64_after_hwframe+0x6d/0x75 RIP: 0033:0x7f7fac07fd89 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 91 18 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fff660eb788 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f7fac07fd89 RDX: 0000000000000000 RSI: 0000000000000118 RDI: 0000000000000004 RBP: 0000000000000000 R08: 0000000000000002 R09: 0000000000000000 R10: 0000000020000a80 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.8.10
- Published
- 2024-05-30
Affected versions
From: 6.7
Until: 6.8.10
Fixed in: 6.8.10
How to fix this CVE
Update your Linux kernel to version 6.8.10 or later to fix an unsafe memory copy vulnerability in the NFC LLCP socket implementation. This vulnerability allows a local attacker with low privileges to trigger out-of-bounds memory access, potentially causing a denial of service or information disclosure. Apply the kernel update as soon as possible, especially for systems exposing NFC functionality.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check your kernel version with: uname -r — compare against fixed version 6.8.10; any version 6.7.x through 6.8.9 is vulnerable
- Verify NFC LLCP module is loaded with: lsmod | grep nfc — if loaded, your system could be affected
- Check for NFC socket activity in audit logs: sudo ausearch -m syscall -F syscall=setsockopt 2>/dev/null | grep -i nfc
- After patching, confirm the new kernel is running: uname -r should show 6.8.10 or later
FAQ
What is CVE-2024-36915?
This vulnerability is a buffer boundary violation in the Linux kernel's NFC LLCP socket option handler that fails to properly validate user-supplied data before copying it from userspace. An attacker with local access can trigger out-of-bounds memory reads, leading to denial of service or potential information leakage.
Is CVE-2024-36915 being actively exploited?
No, there are no known active exploits in the wild, and it is not listed in CISA's Known Exploited Vulnerabilities catalog. However, proof-of-concept exploitation is straightforward for local attackers.
What versions of Kernel are affected by CVE-2024-36915?
Linux kernel versions 6.7.0 through 6.8.9 are vulnerable. Version 6.8.10 and later contain the fix.
How do I check if my server is vulnerable to CVE-2024-36915?
Run uname -r to check your kernel version. If it falls between 6.7.0 and 6.8.9, your system is vulnerable. Additionally, run lsmod | grep nfc to confirm if NFC modules are loaded on your system.
Does Defensia detect CVE-2024-36915?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2024-36915 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/0f106133203021533cb753e80d75896f4ad222f8
- https://git.kernel.org/stable/c/298609e7069ce74542a2253a39ccc9717f1d877a
- https://git.kernel.org/stable/c/29dc0ea979d433dd3c26abc8fa971550bdc05107
- https://git.kernel.org/stable/c/7a87441c9651ba37842f4809224aca13a554a26f
- https://git.kernel.org/stable/c/29dc0ea979d433dd3c26abc8fa971550bdc05107
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-36915. Free for 1 server.
Get started free