# CVE-2023-53240: xsk: check IFF\_UP earlier in Tx path

> 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, CNA) `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.23% (percentile 8, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-09-15T14:22:14.241Z
- **Modified:** 2026-06-17T06:44:36.210Z

## Who should check

- Anyone running Linux \>= 18b1ab7aa76bde181bdb1ab19a87fa9523c32f21, \< cecc68559cd57fffb2be50685f262b9af2318e16; \>= 18b1ab7aa76bde181bdb1ab19a87fa9523c32f21, \< ffe19750e68d0bb21e8110b398346eef20b156a7; \>= 18b1ab7aa76bde181bdb1ab19a87fa9523c32f21, \< 1596dae2f17ec5c6e8c8f0e3fec78c5ae55c1e0b; ad7219cd8751bd258b9d1e69ae0654ec00f71875; d1579253ffce39986e7a6ab757ac93b2680a665f; 8a2dea162b92c322f3e42eae0c4a74b8d20aa7a9; \>= 5.15.33, \< 5.16; \>= 5.16.19, \< 5.17; \>= 5.17.2, \< 5.18
- Anyone running Linux 5.18

## Description

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

xsk: check IFF\_UP earlier in Tx path

Xsk Tx can be triggered via either sendmsg() or poll() syscalls. These
two paths share a call to common function xsk\_xmit() which has two
sanity checks within. A pseudo code example to show the two paths:

\_\_xsk\_sendmsg() :                       xsk\_poll():
if (unlikely(!xsk\_is\_bound(xs)))        if (unlikely(!xsk\_is\_bound(xs)))
    return -ENXIO;                          return mask;
if (unlikely(need\_wait))                (...)
    return -EOPNOTSUPP;                 xsk\_xmit()
mark napi id
(...)
xsk\_xmit()

xsk\_xmit():
if (unlikely(!(xs-\>dev-\>flags & IFF\_UP)))
	return -ENETDOWN;
if (unlikely(!xs-\>tx))
	return -ENOBUFS;

As it can be observed above, in sendmsg() napi id can be marked on
interface that was not brought up and this causes a NULL ptr
dereference:

\[31757.505631\] BUG: kernel NULL pointer dereference, address: 0000000000000018
\[31757.512710\] \#PF: supervisor read access in kernel mode
\[31757.517936\] \#PF: error\_code(0x0000) - not-present page
\[31757.523149\] PGD 0 P4D 0
\[31757.525726\] Oops: 0000 \[\#1\] PREEMPT SMP NOPTI
\[31757.530154\] CPU: 26 PID: 95641 Comm: xdpsock Not tainted 6.2.0-rc5+ \#40
\[31757.536871\] Hardware name: Intel Corporation S2600WFT/S2600WFT, BIOS SE5C620.86B.02.01.0008.031920191559 03/19/2019
\[31757.547457\] RIP: 0010:xsk\_sendmsg+0xde/0x180
\[31757.551799\] Code: 00 75 a2 48 8b 00 a8 04 75 9b 84 d2 74 69 8b 85 14 01 00 00 85 c0 75 1b 48 8b 85 28 03 00 00 48 8b 80 98 00 00 00 48 8b 40 20 \<8b\> 40 18 89 85 14 01 00 00 8b bd 14 01 00 00 81 ff 00 01 00 00 0f
\[31757.570840\] RSP: 0018:ffffc90034f27dc0 EFLAGS: 00010246
\[31757.576143\] RAX: 0000000000000000 RBX: ffffc90034f27e18 RCX: 0000000000000000
\[31757.583389\] RDX: 0000000000000001 RSI: ffffc90034f27e18 RDI: ffff88984cf3c100
\[31757.590631\] RBP: ffff88984714a800 R08: ffff88984714a800 R09: 0000000000000000
\[31757.597877\] R10: 0000000000000001 R11: 0000000000000000 R12: 00000000fffffffa
\[31757.605123\] R13: 0000000000000000 R14: 0000000000000003 R15: 0000000000000000
\[31757.612364\] FS:  00007fb4c5931180(0000) GS:ffff88afdfa00000(0000) knlGS:0000000000000000
\[31757.620571\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[31757.626406\] CR2: 0000000000000018 CR3: 000000184b41c003 CR4: 00000000007706e0
\[31757.633648\] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
\[31757.640894\] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
\[31757.648139\] PKRU: 55555554
\[31757.650894\] Call Trace:
\[31757.653385\]  \<TASK\>
\[31757.655524\]  sock\_sendmsg+0x8f/0xa0
\[31757.659077\]  ? sockfd\_lookup\_light+0x12/0x70
\[31757.663416\]  \_\_sys\_sendto+0xfc/0x170
\[31757.667051\]  ? do\_sched\_setscheduler+0xdb/0x1b0
\[31757.671658\]  \_\_x64\_sys\_sendto+0x20/0x30
\[31757.675557\]  do\_syscall\_64+0x38/0x90
\[31757.679197\]  entry\_SYSCALL\_64\_after\_hwframe+0x72/0xdc
\[31757.687969\] Code: 8e f6 ff 44 8b 4c 24 2c 4c 8b 44 24 20 41 89 c4 44 8b 54 24 28 48 8b 54 24 18 b8 2c 00 00 00 48 8b 74 24 10 8b 7c 24 08 0f 05 \<48\> 3d 00 f0 ff ff 77 3a 44 89 e7 48 89 44 24 08 e8 b5 8e f6 ff 48
\[31757.707007\] RSP: 002b:00007ffd49c73c70 EFLAGS: 00000293 ORIG\_RAX: 000000000000002c
\[31757.714694\] RAX: ffffffffffffffda RBX: 000055a996565380 RCX: 00007fb4c5727c16
\[31757.721939\] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
\[31757.729184\] RBP: 0000000000000040 R08: 0000000000000000 R09: 0000000000000000
\[31757.736429\] R10: 0000000000000040 R11: 0000000000000293 R12: 0000000000000000
\[31757.743673\] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
\[31757.754940\]  \</TASK\>

To fix this, let's make xsk\_xmit a function that will be responsible for
generic Tx, where RCU is handled accordingly and pull out sanity checks
and xs-\>zc handling. Populate sanity checks to \_\_xsk\_sendmsg() and
xsk\_poll().

## Affected and fixed versions

- Linux: \>= 18b1ab7aa76bde181bdb1ab19a87fa9523c32f21, \< cecc68559cd57fffb2be50685f262b9af2318e16; \>= 18b1ab7aa76bde181bdb1ab19a87fa9523c32f21, \< ffe19750e68d0bb21e8110b398346eef20b156a7; \>= 18b1ab7aa76bde181bdb1ab19a87fa9523c32f21, \< 1596dae2f17ec5c6e8c8f0e3fec78c5ae55c1e0b; ad7219cd8751bd258b9d1e69ae0654ec00f71875; d1579253ffce39986e7a6ab757ac93b2680a665f; 8a2dea162b92c322f3e42eae0c4a74b8d20aa7a9; \>= 5.15.33, \< 5.16; \>= 5.16.19, \< 5.17; \>= 5.17.2, \< 5.18 (cvelist)
- Linux: 5.18 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2023-53240.md
Affected: Linux >= 18b1ab7aa76bde181bdb1ab19a87fa9523c32f21, < cecc68559cd57fffb2be50685f262b9af2318e16; >= 18b1ab7aa76bde181bdb1ab19a87fa9523c32f21, < ffe19750e68d0bb21e8110b398346eef20b156a7; >= 18b1ab7aa76bde181bdb1ab19a87fa9523c32f21, < 1596dae2f17ec5c6e8c8f0e3fec78c5ae55c1e0b; ad7219cd8751bd258b9d1e69ae…
Fixed in: Linux 1596dae2f17ec5c6e8c8f0e3fec78c5ae55c1e0b, Linux 5.16, Linux 5.17, Linux 5.18

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

There is no confirmed exploitation: CVE-2023-53240 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-53240?

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

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

Linux \>= 18b1ab7aa76bde181bdb1ab19a87fa9523c32f21, \< cecc68559cd57fffb2be50685f262b9af2318e16; \>= 18b1ab7aa76bde181bdb1ab19a87fa9523c32f21, \< ffe19750e68d0bb21e8110b398346eef20b156a7; \>= 18b1ab7aa76bde181bdb1ab19a87fa9523c32f21, \< 1596dae2f17ec5c6e8c8f0e3fec78c5ae55c1e0b; ad7219cd8751bd258b9d1e69ae0654ec00f71875; d1579253ffce39986e7a6ab757ac93b2680a665f; 8a2dea162b92c322f3e42eae0c4a74b8d20aa7a9; \>= 5.15.33, \< 5.16; \>= 5.16.19, \< 5.17; \>= 5.17.2, \< 5.18; Linux 5.18.

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

Yes. Fixed in Linux 1596dae2f17ec5c6e8c8f0e3fec78c5ae55c1e0b, Linux 5.16, Linux 5.17, Linux 5.18. Upgrade Linux to 5.18 or later.

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

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/cecc68559cd57fffb2be50685f262b9af2318e16>
- patch: <https://git.kernel.org/stable/c/ffe19750e68d0bb21e8110b398346eef20b156a7>
- patch: <https://git.kernel.org/stable/c/1596dae2f17ec5c6e8c8f0e3fec78c5ae55c1e0b>

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

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