# CVE-2024-36915: nfc: llcp: fix nfc\_llcp\_setsockopt() unsafe copies

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 17, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2024-05-30T15:29:12.158Z
- **Modified:** 2026-08-05T11:32:02.908Z

## Who should check

- Anyone running Linux \>= 26fd76cab2e61cedc5c25f7151fb31b57ddc53c7, \< 298609e7069ce74542a2253a39ccc9717f1d877a; \>= 26fd76cab2e61cedc5c25f7151fb31b57ddc53c7, \< 0f106133203021533cb753e80d75896f4ad222f8; \>= 26fd76cab2e61cedc5c25f7151fb31b57ddc53c7, \< 29dc0ea979d433dd3c26abc8fa971550bdc05107; \>= 26fd76cab2e61cedc5c25f7151fb31b57ddc53c7, \< 7a87441c9651ba37842f4809224aca13a554a26f
- Anyone running Linux 3.10

## Description

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

## Affected and fixed versions

- Linux: \>= 26fd76cab2e61cedc5c25f7151fb31b57ddc53c7, \< 298609e7069ce74542a2253a39ccc9717f1d877a; \>= 26fd76cab2e61cedc5c25f7151fb31b57ddc53c7, \< 0f106133203021533cb753e80d75896f4ad222f8; \>= 26fd76cab2e61cedc5c25f7151fb31b57ddc53c7, \< 29dc0ea979d433dd3c26abc8fa971550bdc05107; \>= 26fd76cab2e61cedc5c25f7151fb31b57ddc53c7, \< 7a87441c9651ba37842f4809224aca13a554a26f (cvelist)
- Linux: 3.10 (cvelist)

## Mitigation

- Upgrade Linux to 7a87441c9651ba37842f4809224aca13a554a26f or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-36915. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-36915.md
Affected: Linux >= 26fd76cab2e61cedc5c25f7151fb31b57ddc53c7, < 298609e7069ce74542a2253a39ccc9717f1d877a; >= 26fd76cab2e61cedc5c25f7151fb31b57ddc53c7, < 0f106133203021533cb753e80d75896f4ad222f8; >= 26fd76cab2e61cedc5c25f7151fb31b57ddc53c7, < 29dc0ea979d433dd3c26abc8fa971550bdc05107; >= 26fd76cab2e61cedc5c25f7…
Fixed in: Linux 298609e7069ce74542a2253a39ccc9717f1d877a, Linux 0f106133203021533cb753e80d75896f4ad222f8, Linux 29dc0ea979d433dd3c26abc8fa971550bdc05107, Linux 7a87441c9651ba37842f4809224aca13a554a26f

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-36915 being exploited?

There is no confirmed exploitation: CVE-2024-36915 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-36915?

High: CVSS 7.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-36915?

Linux \>= 26fd76cab2e61cedc5c25f7151fb31b57ddc53c7, \< 298609e7069ce74542a2253a39ccc9717f1d877a; \>= 26fd76cab2e61cedc5c25f7151fb31b57ddc53c7, \< 0f106133203021533cb753e80d75896f4ad222f8; \>= 26fd76cab2e61cedc5c25f7151fb31b57ddc53c7, \< 29dc0ea979d433dd3c26abc8fa971550bdc05107; \>= 26fd76cab2e61cedc5c25f7151fb31b57ddc53c7, \< 7a87441c9651ba37842f4809224aca13a554a26f; Linux 3.10.

### Is there a fix for CVE-2024-36915?

Yes. Fixed in Linux 298609e7069ce74542a2253a39ccc9717f1d877a, Linux 0f106133203021533cb753e80d75896f4ad222f8, Linux 29dc0ea979d433dd3c26abc8fa971550bdc05107, Linux 7a87441c9651ba37842f4809224aca13a554a26f. Upgrade Linux to 7a87441c9651ba37842f4809224aca13a554a26f or later.

### How do I check if I'm affected by CVE-2024-36915?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/298609e7069ce74542a2253a39ccc9717f1d877a>
- patch: <https://git.kernel.org/stable/c/0f106133203021533cb753e80d75896f4ad222f8>
- patch: <https://git.kernel.org/stable/c/29dc0ea979d433dd3c26abc8fa971550bdc05107>
- patch: <https://git.kernel.org/stable/c/7a87441c9651ba37842f4809224aca13a554a26f>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-36915>

HTML: <https://flawdb.com/CVE-2024-36915> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-36915>
