# CVE-2023-54004: udplite: Fix NULL pointer dereference in \_\_sk\_mem\_raise\_allocated().

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

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; 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:** Remote, no login needed
- **EPSS:** 0.93% (percentile 59, 2026-11-26)
- **Published:** 2025-12-24T10:55:39.149Z
- **Modified:** 2026-10-15T22:17:50.580Z

## Who should check

- Anyone running Linux \>= 850cbaddb52dfd4e0c7cabe2c168dd34b44ae0b9, \< cc56de054d828935aa37734b479f82fa34b5f9bd; \>= 850cbaddb52dfd4e0c7cabe2c168dd34b44ae0b9, \< 7e3ae83371a4809da6fa3f10ccc430eecef3034a; \>= 850cbaddb52dfd4e0c7cabe2c168dd34b44ae0b9, \< 5014b64e369bdf997935b132a1ac4d64b6e47ad4; \>= 850cbaddb52dfd4e0c7cabe2c168dd34b44ae0b9, \< 387bd0a3af3bdd2b16f8dbef0c9fcccac63000a4; \>= 850cbaddb52dfd4e0c7cabe2c168dd34b44ae0b9, \< 2a112f04629f7839e7cb509b27b8d3b735afe255; \>= 850cbaddb52dfd4e0c7cabe2c168dd34b44ae0b9, \< f04c8eaf45e7dcdfccba936506b1ec592a369fb9; \>= 850cbaddb52dfd4e0c7cabe2c168dd34b44ae0b9, \< ad42a35bdfc6d3c0fc4cb4027d7b2757ce665665
- Anyone running Linux 4.10

## Description

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

udplite: Fix NULL pointer dereference in \_\_sk\_mem\_raise\_allocated().

syzbot reported \[0\] a null-ptr-deref in sk\_get\_rmem0() while using
IPPROTO\_UDPLITE (0x88):

  14:25:52 executing program 1:
  r0 = socket$inet6(0xa, 0x80002, 0x88)

We had a similar report \[1\] for probably sk\_memory\_allocated\_add()
in \_\_sk\_mem\_raise\_allocated(), and commit c915fe13cbaa ("udplite: fix
NULL pointer dereference") fixed it by setting .memory\_allocated for
udplite\_prot and udplitev6\_prot.

To fix the variant, we need to set either .sysctl\_wmem\_offset or
.sysctl\_rmem.

Now UDP and UDPLITE share the same value for .memory\_allocated, so we
use the same .sysctl\_wmem\_offset for UDP and UDPLITE.

\[0\]:
general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 \[\#1\] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range \[0x0000000000000000-0x0000000000000007\]
CPU: 0 PID: 6829 Comm: syz-executor.1 Not tainted 6.4.0-rc2-syzkaller \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
RIP: 0010:sk\_get\_rmem0 include/net/sock.h:2907 \[inline\]
RIP: 0010:\_\_sk\_mem\_raise\_allocated+0x806/0x17a0 net/core/sock.c:3006
Code: c1 ea 03 80 3c 02 00 0f 85 23 0f 00 00 48 8b 44 24 08 48 8b 98 38 01 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 da 48 c1 ea 03 \<0f\> b6 14 02 48 89 d8 83 e0 07 83 c0 03 38 d0 0f 8d 6f 0a 00 00 8b
RSP: 0018:ffffc90005d7f450 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc90004d92000
RDX: 0000000000000000 RSI: ffffffff88066482 RDI: ffffffff8e2ccbb8
RBP: ffff8880173f7000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000030000
R13: 0000000000000001 R14: 0000000000000340 R15: 0000000000000001
FS:  0000000000000000(0000) GS:ffff8880b9800000(0063) knlGS:00000000f7f1cb40
CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: 000000002e82f000 CR3: 0000000034ff0000 CR4: 00000000003506f0
Call Trace:
 \<TASK\>
 \_\_sk\_mem\_schedule+0x6c/0xe0 net/core/sock.c:3077
 udp\_rmem\_schedule net/ipv4/udp.c:1539 \[inline\]
 \_\_udp\_enqueue\_schedule\_skb+0x776/0xb30 net/ipv4/udp.c:1581
 \_\_udpv6\_queue\_rcv\_skb net/ipv6/udp.c:666 \[inline\]
 udpv6\_queue\_rcv\_one\_skb+0xc39/0x16c0 net/ipv6/udp.c:775
 udpv6\_queue\_rcv\_skb+0x194/0xa10 net/ipv6/udp.c:793
 \_\_udp6\_lib\_mcast\_deliver net/ipv6/udp.c:906 \[inline\]
 \_\_udp6\_lib\_rcv+0x1bda/0x2bd0 net/ipv6/udp.c:1013
 ip6\_protocol\_deliver\_rcu+0x2e7/0x1250 net/ipv6/ip6\_input.c:437
 ip6\_input\_finish+0x150/0x2f0 net/ipv6/ip6\_input.c:482
 NF\_HOOK include/linux/netfilter.h:303 \[inline\]
 NF\_HOOK include/linux/netfilter.h:297 \[inline\]
 ip6\_input+0xa0/0xd0 net/ipv6/ip6\_input.c:491
 ip6\_mc\_input+0x40b/0xf50 net/ipv6/ip6\_input.c:585
 dst\_input include/net/dst.h:468 \[inline\]
 ip6\_rcv\_finish net/ipv6/ip6\_input.c:79 \[inline\]
 NF\_HOOK include/linux/netfilter.h:303 \[inline\]
 NF\_HOOK include/linux/netfilter.h:297 \[inline\]
 ipv6\_rcv+0x250/0x380 net/ipv6/ip6\_input.c:309
 \_\_netif\_receive\_skb\_one\_core+0x114/0x180 net/core/dev.c:5491
 \_\_netif\_receive\_skb+0x1f/0x1c0 net/core/dev.c:5605
 netif\_receive\_skb\_internal net/core/dev.c:5691 \[inline\]
 netif\_receive\_skb+0x133/0x7a0 net/core/dev.c:5750
 tun\_rx\_batched+0x4b3/0x7a0 drivers/net/tun.c:1553
 tun\_get\_user+0x2452/0x39c0 drivers/net/tun.c:1989
 tun\_chr\_write\_iter+0xdf/0x200 drivers/net/tun.c:2035
 call\_write\_iter include/linux/fs.h:1868 \[inline\]
 new\_sync\_write fs/read\_write.c:491 \[inline\]
 vfs\_write+0x945/0xd50 fs/read\_write.c:584
 ksys\_write+0x12b/0x250 fs/read\_write.c:637
 do\_syscall\_32\_irqs\_on arch/x86/entry/common.c:112 \[inline\]
 \_\_do\_fast\_syscall\_32+0x65/0xf0 arch/x86/entry/common.c:178
 do\_fast\_syscall\_32+0x33/0x70 arch/x86/entry/common.c:203
 entry\_SYSENTER\_compat\_after\_hwframe+0x70/0x82
RIP: 0023:0xf7f21579
Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 \<5d\> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00
---truncated---

## Affected and fixed versions

- Linux: \>= 850cbaddb52dfd4e0c7cabe2c168dd34b44ae0b9, \< cc56de054d828935aa37734b479f82fa34b5f9bd; \>= 850cbaddb52dfd4e0c7cabe2c168dd34b44ae0b9, \< 7e3ae83371a4809da6fa3f10ccc430eecef3034a; \>= 850cbaddb52dfd4e0c7cabe2c168dd34b44ae0b9, \< 5014b64e369bdf997935b132a1ac4d64b6e47ad4; \>= 850cbaddb52dfd4e0c7cabe2c168dd34b44ae0b9, \< 387bd0a3af3bdd2b16f8dbef0c9fcccac63000a4; \>= 850cbaddb52dfd4e0c7cabe2c168dd34b44ae0b9, \< 2a112f04629f7839e7cb509b27b8d3b735afe255; \>= 850cbaddb52dfd4e0c7cabe2c168dd34b44ae0b9, \< f04c8eaf45e7dcdfccba936506b1ec592a369fb9; \>= 850cbaddb52dfd4e0c7cabe2c168dd34b44ae0b9, \< ad42a35bdfc6d3c0fc4cb4027d7b2757ce665665 (cvelist)
- Linux: 4.10 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-54004.md
Affected: Linux >= 850cbaddb52dfd4e0c7cabe2c168dd34b44ae0b9, < cc56de054d828935aa37734b479f82fa34b5f9bd; >= 850cbaddb52dfd4e0c7cabe2c168dd34b44ae0b9, < 7e3ae83371a4809da6fa3f10ccc430eecef3034a; >= 850cbaddb52dfd4e0c7cabe2c168dd34b44ae0b9, < 5014b64e369bdf997935b132a1ac4d64b6e47ad4; >= 850cbaddb52dfd4e0c7cabe…
Fixed in: Linux 7e3ae83371a4809da6fa3f10ccc430eecef3034a, Linux 5014b64e369bdf997935b132a1ac4d64b6e47ad4, Linux 387bd0a3af3bdd2b16f8dbef0c9fcccac63000a4, Linux 2a112f04629f7839e7cb509b27b8d3b735afe255

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-54004 being exploited?

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

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

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= 850cbaddb52dfd4e0c7cabe2c168dd34b44ae0b9, \< cc56de054d828935aa37734b479f82fa34b5f9bd; \>= 850cbaddb52dfd4e0c7cabe2c168dd34b44ae0b9, \< 7e3ae83371a4809da6fa3f10ccc430eecef3034a; \>= 850cbaddb52dfd4e0c7cabe2c168dd34b44ae0b9, \< 5014b64e369bdf997935b132a1ac4d64b6e47ad4; \>= 850cbaddb52dfd4e0c7cabe2c168dd34b44ae0b9, \< 387bd0a3af3bdd2b16f8dbef0c9fcccac63000a4; \>= 850cbaddb52dfd4e0c7cabe2c168dd34b44ae0b9, \< 2a112f04629f7839e7cb509b27b8d3b735afe255; \>= 850cbaddb52dfd4e0c7cabe2c168dd34b44ae0b9, \< f04c8eaf45e7dcdfccba936506b1ec592a369fb9; \>= 850cbaddb52dfd4e0c7cabe2c168dd34b44ae0b9, \< ad42a35bdfc6d3c0fc4cb4027d7b2757ce665665; Linux 4.10.

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

Yes. Fixed in Linux 7e3ae83371a4809da6fa3f10ccc430eecef3034a, Linux 5014b64e369bdf997935b132a1ac4d64b6e47ad4, Linux 387bd0a3af3bdd2b16f8dbef0c9fcccac63000a4, Linux 2a112f04629f7839e7cb509b27b8d3b735afe255. No fix listed yet: follow the vendor advisory.

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

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

- other: <https://git.kernel.org/stable/c/cc56de054d828935aa37734b479f82fa34b5f9bd>
- other: <https://git.kernel.org/stable/c/7e3ae83371a4809da6fa3f10ccc430eecef3034a>
- other: <https://git.kernel.org/stable/c/5014b64e369bdf997935b132a1ac4d64b6e47ad4>
- other: <https://git.kernel.org/stable/c/387bd0a3af3bdd2b16f8dbef0c9fcccac63000a4>
- other: <https://git.kernel.org/stable/c/2a112f04629f7839e7cb509b27b8d3b735afe255>
- other: <https://git.kernel.org/stable/c/f04c8eaf45e7dcdfccba936506b1ec592a369fb9>
- other: <https://git.kernel.org/stable/c/ad42a35bdfc6d3c0fc4cb4027d7b2757ce665665>

## 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-54004>

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