{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2024-36915", "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "state": "PUBLISHED", "assignerShortName": "Linux", "dateReserved": "2024-05-30T15:25:07.068Z", "datePublished": "2024-05-30T15:29:12.158Z", "dateUpdated": "2026-08-05T11:32:02.908Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "shortName": "Linux", "dateUpdated": "2026-08-05T11:32:02.908Z" }, "descriptions": [ { "lang": "en", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnfc: llcp: fix nfc_llcp_setsockopt() unsafe copies\n\nsyzbot reported unsafe calls to copy_from_sockptr() [1]\n\nUse copy_safe_from_sockptr() instead.\n\n[1]\n\nBUG: KASAN: slab-out-of-bounds in copy_from_sockptr_offset include/linux/sockptr.h:49 [inline]\n BUG: KASAN: slab-out-of-bounds in copy_from_sockptr include/linux/sockptr.h:55 [inline]\n BUG: KASAN: slab-out-of-bounds in nfc_llcp_setsockopt+0x6c2/0x850 net/nfc/llcp_sock.c:255\nRead of size 4 at addr ffff88801caa1ec3 by task syz-executor459/5078\n\nCPU: 0 PID: 5078 Comm: syz-executor459 Not tainted 6.8.0-syzkaller-08951-gfe46a7dd189e #0\nHardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024\nCall Trace:\n \n __dump_stack lib/dump_stack.c:88 [inline]\n dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114\n print_address_description mm/kasan/report.c:377 [inline]\n print_report+0x169/0x550 mm/kasan/report.c:488\n kasan_report+0x143/0x180 mm/kasan/report.c:601\n copy_from_sockptr_offset include/linux/sockptr.h:49 [inline]\n copy_from_sockptr include/linux/sockptr.h:55 [inline]\n nfc_llcp_setsockopt+0x6c2/0x850 net/nfc/llcp_sock.c:255\n do_sock_setsockopt+0x3b1/0x720 net/socket.c:2311\n __sys_setsockopt+0x1ae/0x250 net/socket.c:2334\n __do_sys_setsockopt net/socket.c:2343 [inline]\n __se_sys_setsockopt net/socket.c:2340 [inline]\n __x64_sys_setsockopt+0xb5/0xd0 net/socket.c:2340\n do_syscall_64+0xfd/0x240\n entry_SYSCALL_64_after_hwframe+0x6d/0x75\nRIP: 0033:0x7f7fac07fd89\nCode: 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\nRSP: 002b:00007fff660eb788 EFLAGS: 00000246 ORIG_RAX: 0000000000000036\nRAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f7fac07fd89\nRDX: 0000000000000000 RSI: 0000000000000118 RDI: 0000000000000004\nRBP: 0000000000000000 R08: 0000000000000002 R09: 0000000000000000\nR10: 0000000020000a80 R11: 0000000000000246 R12: 0000000000000000\nR13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000" } ], "metrics": [ { "cvssV3_1": { "version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H", "baseScore": 7.1, "baseSeverity": "HIGH" }, "scenarios": [ { "lang": "en", "value": "AV:L - The over-read is triggered exclusively through the local `setsockopt(2)` syscall on an AF_NFC/LLCP socket (`__sys_setsockopt` → `do_sock_setsockopt` → `nfc_llcp_setsockopt`); no NFC frame or other remote-peer data reaches this code, so a remote or adjacent NFC peer cannot drive it.\nAC:L - The attacker fully controls the only trigger condition — passing `optlen` smaller than `sizeof(u32)` — and the 4-byte read happens deterministically on every call, with no race or memory layout condition outside the attacker's influence.\nPR:L - `llcp_sock_create()` checks `CAP_NET_RAW` only for `SOCK_RAW`, so any unprivileged local user can `socket(AF_NFC, SOCK_STREAM, NFC_SOCKPROTO_LLCP)` and immediately call setsockopt while the socket is in `LLCP_CLOSED`. No capability, namespace privilege, or NFC hardware is needed to reach the vulnerable copy.\nUI:N - A single attacker-issued syscall sequence reaches the flaw; no administrator or other user has to open, mount, or configure anything.\nS:U - The out-of-bounds read stays within the kernel's own memory and the affected NFC socket state, with no crossing of a VM, IOMMU, or sandbox boundary.\nC:H - This is a kernel slab out-of-bounds read (KASAN-confirmed) of adjacent heap contents, and the disclosed value is partially exfiltrable to userspace: bytes past the buffer land in `opt`, gate control flow via the `LLCP_MAX_RW`/`LLCP_MAX_MIUX` checks, and are stored into `llcp_sock->rw`/`miux` where `nfc_llcp_getsockopt()` returns them, giving a repeatable heap-content oracle.\nI:N - The defect is purely a read; nothing is written outside any object, and the only values stored (`llcp_sock->rw`, `llcp_sock->miux`) remain inside their validated ranges and are settable legitimately by the same user anyway.\nA:H - The read walks off the end of a small `kmalloc()` buffer, which on KASAN/SLUB_DEBUG/`panic_on_warn` or MTE-hardened kernels (e.g. Android) produces a fatal report rather than a recoverable error, and the syscall can be repeated at will by an unprivileged user." } ] } ], "affected": [ { "product": "Linux", "vendor": "Linux", "defaultStatus": "unaffected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "net/nfc/llcp_sock.c" ], "versions": [ { "version": "26fd76cab2e61cedc5c25f7151fb31b57ddc53c7", "lessThan": "298609e7069ce74542a2253a39ccc9717f1d877a", "status": "affected", "versionType": "git" }, { "version": "26fd76cab2e61cedc5c25f7151fb31b57ddc53c7", "lessThan": "0f106133203021533cb753e80d75896f4ad222f8", "status": "affected", "versionType": "git" }, { "version": "26fd76cab2e61cedc5c25f7151fb31b57ddc53c7", "lessThan": "29dc0ea979d433dd3c26abc8fa971550bdc05107", "status": "affected", "versionType": "git" }, { "version": "26fd76cab2e61cedc5c25f7151fb31b57ddc53c7", "lessThan": "7a87441c9651ba37842f4809224aca13a554a26f", "status": "affected", "versionType": "git" } ] }, { "product": "Linux", "vendor": "Linux", "defaultStatus": "affected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "net/nfc/llcp_sock.c" ], "versions": [ { "version": "3.10", "status": "affected" }, { "version": "0", "lessThan": "3.10", "status": "unaffected", "versionType": "semver" }, { "version": "6.1.119", "lessThanOrEqual": "6.1.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.6.47", "lessThanOrEqual": "6.6.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.8.10", "lessThanOrEqual": "6.8.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.9", "lessThanOrEqual": "*", "status": "unaffected", "versionType": "original_commit_for_fix" } ] } ], "cpeApplicability": [ { "nodes": [ { "operator": "OR", "negate": false, "cpeMatch": [ { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "3.10", "versionEndExcluding": "6.1.119" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "3.10", "versionEndExcluding": "6.6.47" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "3.10", "versionEndExcluding": "6.8.10" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "3.10", "versionEndExcluding": "6.9" } ] } ] } ], "references": [ { "url": "https://git.kernel.org/stable/c/298609e7069ce74542a2253a39ccc9717f1d877a" }, { "url": "https://git.kernel.org/stable/c/0f106133203021533cb753e80d75896f4ad222f8" }, { "url": "https://git.kernel.org/stable/c/29dc0ea979d433dd3c26abc8fa971550bdc05107" }, { "url": "https://git.kernel.org/stable/c/7a87441c9651ba37842f4809224aca13a554a26f" } ], "title": "nfc: llcp: fix nfc_llcp_setsockopt() unsafe copies", "x_generator": { "engine": "bippy-1.2.0" } }, "adp": [ { "title": "CVE Program Container", "references": [ { "url": "https://git.kernel.org/stable/c/29dc0ea979d433dd3c26abc8fa971550bdc05107", "tags": [ "x_transferred" ] }, { "url": "https://git.kernel.org/stable/c/7a87441c9651ba37842f4809224aca13a554a26f", "tags": [ "x_transferred" ] }, { "url": "https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html" } ], "providerMetadata": { "orgId": "af854a3a-2127-422b-91ae-364da2661108", "shortName": "CVE", "dateUpdated": "2025-11-03T21:55:25.521Z" } }, { "metrics": [ { "other": { "type": "ssvc", "content": { "id": "CVE-2024-36915", "role": "CISA Coordinator", "options": [ { "Exploitation": "none" }, { "Automatable": "no" }, { "Technical Impact": "partial" } ], "version": "2.0.3", "timestamp": "2024-09-10T17:16:10.298210Z" } } } ], "title": "CISA ADP Vulnrichment", "providerMetadata": { "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "shortName": "CISA-ADP", "dateUpdated": "2024-09-11T17:35:00.416Z" } } ] } }