# CVE-2024-50162: bpf: devmap: provide rxq after redirect

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

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; 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:** Remote, no login needed
- **EPSS:** 0.89% (percentile 57, 2026-11-26)
- **Published:** 2024-11-07T09:31:39.141Z
- **Modified:** 2026-08-05T11:42:11.597Z

## Who should check

- Anyone running Linux \>= cb261b594b4108668e00f565184c7c221efe0359, \< fe068afb868660fe683a8391c6c17ecbe2254922; \>= cb261b594b4108668e00f565184c7c221efe0359, \< a778fbe087c19f4ece5f5fc14173328f070c3803; \>= cb261b594b4108668e00f565184c7c221efe0359, \< 49454f09936a9a96edfb047156889879cb4001eb; \>= cb261b594b4108668e00f565184c7c221efe0359, \< 9167d1c274a336e4763eeb3f3f9cb763c55df5aa; \>= cb261b594b4108668e00f565184c7c221efe0359, \< ca9984c5f0ab3690d98b13937b2485a978c8dd73
- Anyone running Linux 5.14

## Description

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

bpf: devmap: provide rxq after redirect

rxq contains a pointer to the device from where
the redirect happened. Currently, the BPF program
that was executed after a redirect via BPF\_MAP\_TYPE\_DEVMAP\*
does not have it set.

This is particularly bad since accessing ingress\_ifindex, e.g.

SEC("xdp")
int prog(struct xdp\_md \*pkt)
{
        return bpf\_redirect\_map(&dev\_redirect\_map, 0, 0);
}

SEC("xdp/devmap")
int prog\_after\_redirect(struct xdp\_md \*pkt)
{
        bpf\_printk("ifindex %i", pkt-\>ingress\_ifindex);
        return XDP\_PASS;
}

depends on access to rxq, so a NULL pointer gets dereferenced:

\<1\>\[  574.475170\] BUG: kernel NULL pointer dereference, address: 0000000000000000
\<1\>\[  574.475188\] \#PF: supervisor read access in kernel mode
\<1\>\[  574.475194\] \#PF: error\_code(0x0000) - not-present page
\<6\>\[  574.475199\] PGD 0 P4D 0
\<4\>\[  574.475207\] Oops: Oops: 0000 \[\#1\] PREEMPT SMP NOPTI
\<4\>\[  574.475217\] CPU: 4 UID: 0 PID: 217 Comm: kworker/4:1 Not tainted 6.11.0-rc5-reduced-00859-g780801200300 \#23
\<4\>\[  574.475226\] Hardware name: Intel(R) Client Systems NUC13ANHi7/NUC13ANBi7, BIOS ANRPL357.0026.2023.0314.1458 03/14/2023
\<4\>\[  574.475231\] Workqueue: mld mld\_ifc\_work
\<4\>\[  574.475247\] RIP: 0010:bpf\_prog\_5e13354d9cf5018a\_prog\_after\_redirect+0x17/0x3c
\<4\>\[  574.475257\] Code: cc cc cc cc cc cc cc 80 00 00 00 cc cc cc cc cc cc cc cc f3 0f 1e fa 0f 1f 44 00 00 66 90 55 48 89 e5 f3 0f 1e fa 48 8b 57 20 \<48\> 8b 52 00 8b 92 e0 00 00 00 48 bf f8 a6 d5 c4 5d a0 ff ff be 0b
\<4\>\[  574.475263\] RSP: 0018:ffffa62440280c98 EFLAGS: 00010206
\<4\>\[  574.475269\] RAX: ffffa62440280cd8 RBX: 0000000000000001 RCX: 0000000000000000
\<4\>\[  574.475274\] RDX: 0000000000000000 RSI: ffffa62440549048 RDI: ffffa62440280ce0
\<4\>\[  574.475278\] RBP: ffffa62440280c98 R08: 0000000000000002 R09: 0000000000000001
\<4\>\[  574.475281\] R10: ffffa05dc8b98000 R11: ffffa05f577fca40 R12: ffffa05dcab24000
\<4\>\[  574.475285\] R13: ffffa62440280ce0 R14: ffffa62440549048 R15: ffffa62440549000
\<4\>\[  574.475289\] FS:  0000000000000000(0000) GS:ffffa05f4f700000(0000) knlGS:0000000000000000
\<4\>\[  574.475294\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\<4\>\[  574.475298\] CR2: 0000000000000000 CR3: 000000025522e000 CR4: 0000000000f50ef0
\<4\>\[  574.475303\] PKRU: 55555554
\<4\>\[  574.475306\] Call Trace:
\<4\>\[  574.475313\]  \<IRQ\>
\<4\>\[  574.475318\]  ? \_\_die+0x23/0x70
\<4\>\[  574.475329\]  ? page\_fault\_oops+0x180/0x4c0
\<4\>\[  574.475339\]  ? skb\_pp\_cow\_data+0x34c/0x490
\<4\>\[  574.475346\]  ? kmem\_cache\_free+0x257/0x280
\<4\>\[  574.475357\]  ? exc\_page\_fault+0x67/0x150
\<4\>\[  574.475368\]  ? asm\_exc\_page\_fault+0x26/0x30
\<4\>\[  574.475381\]  ? bpf\_prog\_5e13354d9cf5018a\_prog\_after\_redirect+0x17/0x3c
\<4\>\[  574.475386\]  bq\_xmit\_all+0x158/0x420
\<4\>\[  574.475397\]  \_\_dev\_flush+0x30/0x90
\<4\>\[  574.475407\]  veth\_poll+0x216/0x250 \[veth\]
\<4\>\[  574.475421\]  \_\_napi\_poll+0x28/0x1c0
\<4\>\[  574.475430\]  net\_rx\_action+0x32d/0x3a0
\<4\>\[  574.475441\]  handle\_softirqs+0xcb/0x2c0
\<4\>\[  574.475451\]  do\_softirq+0x40/0x60
\<4\>\[  574.475458\]  \</IRQ\>
\<4\>\[  574.475461\]  \<TASK\>
\<4\>\[  574.475464\]  \_\_local\_bh\_enable\_ip+0x66/0x70
\<4\>\[  574.475471\]  \_\_dev\_queue\_xmit+0x268/0xe40
\<4\>\[  574.475480\]  ? selinux\_ip\_postroute+0x213/0x420
\<4\>\[  574.475491\]  ? alloc\_skb\_with\_frags+0x4a/0x1d0
\<4\>\[  574.475502\]  ip6\_finish\_output2+0x2be/0x640
\<4\>\[  574.475512\]  ? nf\_hook\_slow+0x42/0xf0
\<4\>\[  574.475521\]  ip6\_finish\_output+0x194/0x300
\<4\>\[  574.475529\]  ? \_\_pfx\_ip6\_finish\_output+0x10/0x10
\<4\>\[  574.475538\]  mld\_sendpack+0x17c/0x240
\<4\>\[  574.475548\]  mld\_ifc\_work+0x192/0x410
\<4\>\[  574.475557\]  process\_one\_work+0x15d/0x380
\<4\>\[  574.475566\]  worker\_thread+0x29d/0x3a0
\<4\>\[  574.475573\]  ? \_\_pfx\_worker\_thread+0x10/0x10
\<4\>\[  574.475580\]  ? \_\_pfx\_worker\_thread+0x10/0x10
\<4\>\[  574.475587\]  kthread+0xcd/0x100
\<4\>\[  574.475597\]  ? \_\_pfx\_kthread+0x10/0x10
\<4\>\[  574.475606\]  ret\_from\_fork+0x31/0x50
\<4\>\[  574.475615\]  ? \_\_pfx\_kthread+0x10/0x10
\<4\>\[  574.475623\]  ret\_from\_fork\_asm+0x1a/0x
---truncated---

## Affected and fixed versions

- Linux: \>= cb261b594b4108668e00f565184c7c221efe0359, \< fe068afb868660fe683a8391c6c17ecbe2254922; \>= cb261b594b4108668e00f565184c7c221efe0359, \< a778fbe087c19f4ece5f5fc14173328f070c3803; \>= cb261b594b4108668e00f565184c7c221efe0359, \< 49454f09936a9a96edfb047156889879cb4001eb; \>= cb261b594b4108668e00f565184c7c221efe0359, \< 9167d1c274a336e4763eeb3f3f9cb763c55df5aa; \>= cb261b594b4108668e00f565184c7c221efe0359, \< ca9984c5f0ab3690d98b13937b2485a978c8dd73 (cvelist)
- Linux: 5.14 (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-2024-50162. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-50162.md
Affected: Linux >= cb261b594b4108668e00f565184c7c221efe0359, < fe068afb868660fe683a8391c6c17ecbe2254922; >= cb261b594b4108668e00f565184c7c221efe0359, < a778fbe087c19f4ece5f5fc14173328f070c3803; >= cb261b594b4108668e00f565184c7c221efe0359, < 49454f09936a9a96edfb047156889879cb4001eb; >= cb261b594b4108668e00f56…
Fixed in: Linux 49454f09936a9a96edfb047156889879cb4001eb, Linux 9167d1c274a336e4763eeb3f3f9cb763c55df5aa

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

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

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

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= cb261b594b4108668e00f565184c7c221efe0359, \< fe068afb868660fe683a8391c6c17ecbe2254922; \>= cb261b594b4108668e00f565184c7c221efe0359, \< a778fbe087c19f4ece5f5fc14173328f070c3803; \>= cb261b594b4108668e00f565184c7c221efe0359, \< 49454f09936a9a96edfb047156889879cb4001eb; \>= cb261b594b4108668e00f565184c7c221efe0359, \< 9167d1c274a336e4763eeb3f3f9cb763c55df5aa; \>= cb261b594b4108668e00f565184c7c221efe0359, \< ca9984c5f0ab3690d98b13937b2485a978c8dd73; Linux 5.14.

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

Yes. Fixed in Linux 49454f09936a9a96edfb047156889879cb4001eb, Linux 9167d1c274a336e4763eeb3f3f9cb763c55df5aa. No fix listed yet: follow the vendor advisory.

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

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/fe068afb868660fe683a8391c6c17ecbe2254922>
- patch: <https://git.kernel.org/stable/c/a778fbe087c19f4ece5f5fc14173328f070c3803>
- patch: <https://git.kernel.org/stable/c/49454f09936a9a96edfb047156889879cb4001eb>
- patch: <https://git.kernel.org/stable/c/9167d1c274a336e4763eeb3f3f9cb763c55df5aa>
- patch: <https://git.kernel.org/stable/c/ca9984c5f0ab3690d98b13937b2485a978c8dd73>
- 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-50162>

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