# CVE-2023-53686: net/handshake: fix null-ptr-deref in handshake\_nl\_done\_doit()

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; 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.19% (percentile 5, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-10-07T15:21:38.824Z
- **Modified:** 2026-10-28T19:10:00.193Z

## Who should check

- Anyone running Linux \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< 93d69f18edcca282351394c5870bec24cc99d745; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< 82ba0ff7bf0483d962e592017bef659ae022d754
- Anyone running Linux 6.4

## Description

In the Linux kernel, the following vulnerability has been resolved:

net/handshake: fix null-ptr-deref in handshake\_nl\_done\_doit()

We should not call trace\_handshake\_cmd\_done\_err() if socket lookup has failed.

Also we should call trace\_handshake\_cmd\_done\_err() before releasing the file,
otherwise dereferencing sock-\>sk can return garbage.

This also reverts 7afc6d0a107f ("net/handshake: Fix uninitialized local variable")

Unable to handle kernel paging request at virtual address dfff800000000003
KASAN: null-ptr-deref in range \[0x0000000000000018-0x000000000000001f\]
Mem abort info:
ESR = 0x0000000096000005
EC = 0x25: DABT (current EL), IL = 32 bits
SET = 0, FnV = 0
EA = 0, S1PTW = 0
FSC = 0x05: level 1 translation fault
Data abort info:
ISV = 0, ISS = 0x00000005, ISS2 = 0x00000000
CM = 0, WnR = 0, TnD = 0, TagAccess = 0
GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
\[dfff800000000003\] address between user and kernel address ranges
Internal error: Oops: 0000000096000005 \[\#1\] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 5986 Comm: syz-executor292 Not tainted 6.5.0-rc7-syzkaller-gfe4469582053 \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : handshake\_nl\_done\_doit+0x198/0x9c8 net/handshake/netlink.c:193
lr : handshake\_nl\_done\_doit+0x180/0x9c8
sp : ffff800096e37180
x29: ffff800096e37200 x28: 1ffff00012dc6e34 x27: dfff800000000000
x26: ffff800096e373d0 x25: 0000000000000000 x24: 00000000ffffffa8
x23: ffff800096e373f0 x22: 1ffff00012dc6e38 x21: 0000000000000000
x20: ffff800096e371c0 x19: 0000000000000018 x18: 0000000000000000
x17: 0000000000000000 x16: ffff800080516cc4 x15: 0000000000000001
x14: 1fffe0001b14aa3b x13: 0000000000000000 x12: 0000000000000000
x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000003
x8 : 0000000000000003 x7 : ffff800080afe47c x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff800080a88078
x2 : 0000000000000001 x1 : 00000000ffffffa8 x0 : 0000000000000000
Call trace:
handshake\_nl\_done\_doit+0x198/0x9c8 net/handshake/netlink.c:193
genl\_family\_rcv\_msg\_doit net/netlink/genetlink.c:970 \[inline\]
genl\_family\_rcv\_msg net/netlink/genetlink.c:1050 \[inline\]
genl\_rcv\_msg+0x96c/0xc50 net/netlink/genetlink.c:1067
netlink\_rcv\_skb+0x214/0x3c4 net/netlink/af\_netlink.c:2549
genl\_rcv+0x38/0x50 net/netlink/genetlink.c:1078
netlink\_unicast\_kernel net/netlink/af\_netlink.c:1339 \[inline\]
netlink\_unicast+0x660/0x8d4 net/netlink/af\_netlink.c:1365
netlink\_sendmsg+0x834/0xb18 net/netlink/af\_netlink.c:1914
sock\_sendmsg\_nosec net/socket.c:725 \[inline\]
sock\_sendmsg net/socket.c:748 \[inline\]
\_\_\_\_sys\_sendmsg+0x56c/0x840 net/socket.c:2494
\_\_\_sys\_sendmsg net/socket.c:2548 \[inline\]
\_\_sys\_sendmsg+0x26c/0x33c net/socket.c:2577
\_\_do\_sys\_sendmsg net/socket.c:2586 \[inline\]
\_\_se\_sys\_sendmsg net/socket.c:2584 \[inline\]
\_\_arm64\_sys\_sendmsg+0x80/0x94 net/socket.c:2584
\_\_invoke\_syscall arch/arm64/kernel/syscall.c:37 \[inline\]
invoke\_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51
el0\_svc\_common+0x130/0x23c arch/arm64/kernel/syscall.c:136
do\_el0\_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155
el0\_svc+0x58/0x16c arch/arm64/kernel/entry-common.c:678
el0t\_64\_sync\_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696
el0t\_64\_sync+0x190/0x194 arch/arm64/kernel/entry.S:591
Code: 12800108 b90043e8 910062b3 d343fe68 (387b6908)

## Affected and fixed versions

- Linux: \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< 93d69f18edcca282351394c5870bec24cc99d745; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< 82ba0ff7bf0483d962e592017bef659ae022d754 (cvelist)
- Linux: 6.4 (cvelist)

## Mitigation

- Upgrade Linux to 82ba0ff7bf0483d962e592017bef659ae022d754 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-53686.md
Affected: Linux >= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, < 93d69f18edcca282351394c5870bec24cc99d745; >= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, < 82ba0ff7bf0483d962e592017bef659ae022d754; Linux 6.4
Fixed in: Linux 93d69f18edcca282351394c5870bec24cc99d745, Linux 82ba0ff7bf0483d962e592017bef659ae022d754

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-2023-53686 being exploited?

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

### How serious is CVE-2023-53686?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-53686?

Linux \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< 93d69f18edcca282351394c5870bec24cc99d745; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< 82ba0ff7bf0483d962e592017bef659ae022d754; Linux 6.4.

### Is there a fix for CVE-2023-53686?

Yes. Fixed in Linux 93d69f18edcca282351394c5870bec24cc99d745, Linux 82ba0ff7bf0483d962e592017bef659ae022d754. Upgrade Linux to 82ba0ff7bf0483d962e592017bef659ae022d754 or later.

### How do I check if I'm affected by CVE-2023-53686?

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/93d69f18edcca282351394c5870bec24cc99d745>
- patch: <https://git.kernel.org/stable/c/82ba0ff7bf0483d962e592017bef659ae022d754>

## 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-2023-53686>

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