# CVE-2023-53752: net: deal with integer overflows in kmalloc\_reserve()

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.23% (percentile 8, 2026-11-26)
- **Published:** 2025-12-08T01:19:12.407Z
- **Modified:** 2026-08-05T09:15:48.993Z

## Who should check

- Anyone running Linux \>= 0dbc898f5917c5a3bec6be19d9f5469cbc351a7d, \< 31cf7853a940181593e4472fc56f46574123f9f6; \>= 12d6c1d3a2ad0c199ec57c201cdc71e8e157a232, \< e4ffc47a1c3e5d11a853aa178c9a5136e79412e9; \>= 12d6c1d3a2ad0c199ec57c201cdc71e8e157a232, \< bf7da02d2b8faf324206e1cbe64a4813ff903cc1; \>= 12d6c1d3a2ad0c199ec57c201cdc71e8e157a232, \< 915d975b2ffa58a14bfcf16fafe00c41315949ff; \>= 6.1.31, \< 6.1.54
- Anyone running Linux 6.2

## Description

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

net: deal with integer overflows in kmalloc\_reserve()

Blamed commit changed:
    ptr = kmalloc(size);
    if (ptr)
      size = ksize(ptr);

    size = kmalloc\_size\_roundup(size);
    ptr = kmalloc(size);

This allowed various crash as reported by syzbot \[1\]
and Kyle Zeng.

Problem is that if @size is bigger than 0x80000001,
kmalloc\_size\_roundup(size) returns 2^32.

kmalloc\_reserve() uses a 32bit variable (obj\_size),
so 2^32 is truncated to 0.

kmalloc(0) returns ZERO\_SIZE\_PTR which is not handled by
skb allocations.

Following trace can be triggered if a netdev-\>mtu is set
close to 0x7fffffff

We might in the future limit netdev-\>mtu to more sensible
limit (like KMALLOC\_MAX\_SIZE).

This patch is based on a syzbot report, and also a report
and tentative fix from Kyle Zeng.

\[1\]
BUG: KASAN: user-memory-access in \_\_build\_skb\_around net/core/skbuff.c:294 \[inline\]
BUG: KASAN: user-memory-access in \_\_alloc\_skb+0x3c4/0x6e8 net/core/skbuff.c:527
Write of size 32 at addr 00000000fffffd10 by task syz-executor.4/22554

CPU: 1 PID: 22554 Comm: syz-executor.4 Not tainted 6.1.39-syzkaller \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
Call trace:
dump\_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:279
show\_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:286
\_\_dump\_stack lib/dump\_stack.c:88 \[inline\]
dump\_stack\_lvl+0x120/0x1a0 lib/dump\_stack.c:106
print\_report+0xe4/0x4b4 mm/kasan/report.c:398
kasan\_report+0x150/0x1ac mm/kasan/report.c:495
kasan\_check\_range+0x264/0x2a4 mm/kasan/generic.c:189
memset+0x40/0x70 mm/kasan/shadow.c:44
\_\_build\_skb\_around net/core/skbuff.c:294 \[inline\]
\_\_alloc\_skb+0x3c4/0x6e8 net/core/skbuff.c:527
alloc\_skb include/linux/skbuff.h:1316 \[inline\]
igmpv3\_newpack+0x104/0x1088 net/ipv4/igmp.c:359
add\_grec+0x81c/0x1124 net/ipv4/igmp.c:534
igmpv3\_send\_cr net/ipv4/igmp.c:667 \[inline\]
igmp\_ifc\_timer\_expire+0x1b0/0x1008 net/ipv4/igmp.c:810
call\_timer\_fn+0x1c0/0x9f0 kernel/time/timer.c:1474
expire\_timers kernel/time/timer.c:1519 \[inline\]
\_\_run\_timers+0x54c/0x710 kernel/time/timer.c:1790
run\_timer\_softirq+0x28/0x4c kernel/time/timer.c:1803
\_stext+0x380/0xfbc
\_\_\_\_do\_softirq+0x14/0x20 arch/arm64/kernel/irq.c:79
call\_on\_irq\_stack+0x24/0x4c arch/arm64/kernel/entry.S:891
do\_softirq\_own\_stack+0x20/0x2c arch/arm64/kernel/irq.c:84
invoke\_softirq kernel/softirq.c:437 \[inline\]
\_\_irq\_exit\_rcu+0x1c0/0x4cc kernel/softirq.c:683
irq\_exit\_rcu+0x14/0x78 kernel/softirq.c:695
el0\_interrupt+0x7c/0x2e0 arch/arm64/kernel/entry-common.c:717
\_\_el0\_irq\_handler\_common+0x18/0x24 arch/arm64/kernel/entry-common.c:724
el0t\_64\_irq\_handler+0x10/0x1c arch/arm64/kernel/entry-common.c:729
el0t\_64\_irq+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584

## Affected and fixed versions

- Linux: \>= 0dbc898f5917c5a3bec6be19d9f5469cbc351a7d, \< 31cf7853a940181593e4472fc56f46574123f9f6; \>= 12d6c1d3a2ad0c199ec57c201cdc71e8e157a232, \< e4ffc47a1c3e5d11a853aa178c9a5136e79412e9; \>= 12d6c1d3a2ad0c199ec57c201cdc71e8e157a232, \< bf7da02d2b8faf324206e1cbe64a4813ff903cc1; \>= 12d6c1d3a2ad0c199ec57c201cdc71e8e157a232, \< 915d975b2ffa58a14bfcf16fafe00c41315949ff; \>= 6.1.31, \< 6.1.54 (cvelist)
- Linux: 6.2 (cvelist)

## Mitigation

- Upgrade Linux to 6.1.54 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-53752. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53752.md
Affected: Linux >= 0dbc898f5917c5a3bec6be19d9f5469cbc351a7d, < 31cf7853a940181593e4472fc56f46574123f9f6; >= 12d6c1d3a2ad0c199ec57c201cdc71e8e157a232, < e4ffc47a1c3e5d11a853aa178c9a5136e79412e9; >= 12d6c1d3a2ad0c199ec57c201cdc71e8e157a232, < bf7da02d2b8faf324206e1cbe64a4813ff903cc1; >= 12d6c1d3a2ad0c199ec57c2…
Fixed in: Linux 31cf7853a940181593e4472fc56f46574123f9f6, Linux 915d975b2ffa58a14bfcf16fafe00c41315949ff, Linux 6.1.54

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

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

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

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

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

Linux \>= 0dbc898f5917c5a3bec6be19d9f5469cbc351a7d, \< 31cf7853a940181593e4472fc56f46574123f9f6; \>= 12d6c1d3a2ad0c199ec57c201cdc71e8e157a232, \< e4ffc47a1c3e5d11a853aa178c9a5136e79412e9; \>= 12d6c1d3a2ad0c199ec57c201cdc71e8e157a232, \< bf7da02d2b8faf324206e1cbe64a4813ff903cc1; \>= 12d6c1d3a2ad0c199ec57c201cdc71e8e157a232, \< 915d975b2ffa58a14bfcf16fafe00c41315949ff; \>= 6.1.31, \< 6.1.54; Linux 6.2.

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

Yes. Fixed in Linux 31cf7853a940181593e4472fc56f46574123f9f6, Linux 915d975b2ffa58a14bfcf16fafe00c41315949ff, Linux 6.1.54. Upgrade Linux to 6.1.54 or later.

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

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/31cf7853a940181593e4472fc56f46574123f9f6>
- other: <https://git.kernel.org/stable/c/e4ffc47a1c3e5d11a853aa178c9a5136e79412e9>
- other: <https://git.kernel.org/stable/c/bf7da02d2b8faf324206e1cbe64a4813ff903cc1>
- other: <https://git.kernel.org/stable/c/915d975b2ffa58a14bfcf16fafe00c41315949ff>

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

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