# CVE-2024-46754: bpf: Remove tst\_run from lwt\_seg6local\_prog\_ops.

> 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.32% (percentile 18, 2026-11-26)
- **Published:** 2024-09-18T07:12:13.780Z
- **Modified:** 2026-09-02T13:16:48.143Z

## Who should check

- Anyone running Linux \>= 004d4b274e2a1a895a0e5dc66158b90a7d463d44, \< ea3fae6984ba0f054550e4da22219489c12cd8d4; \>= 004d4b274e2a1a895a0e5dc66158b90a7d463d44, \< a675524cfbe88fd49c05ff8807a08646983e687c; \>= 004d4b274e2a1a895a0e5dc66158b90a7d463d44, \< b05c2e25a5c168dbb46b6f7fcb741fd4e4f3b54a; \>= 004d4b274e2a1a895a0e5dc66158b90a7d463d44, \< e217492f6fa2228ad703ee3006d8fc4e5969fbd4; \>= 004d4b274e2a1a895a0e5dc66158b90a7d463d44, \< 9cd15511de7c619bbd0f54bb3f28e6e720ded5d6; \>= 004d4b274e2a1a895a0e5dc66158b90a7d463d44, \< c13fda93aca118b8e5cd202e339046728ee7dddb
- Anyone running Linux 4.18

## Description

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

bpf: Remove tst\_run from lwt\_seg6local\_prog\_ops.

The syzbot reported that the lwt\_seg6 related BPF ops can be invoked
via bpf\_test\_run() without without entering input\_action\_end\_bpf()
first.

Martin KaFai Lau said that self test for BPF\_PROG\_TYPE\_LWT\_SEG6LOCAL
probably didn't work since it was introduced in commit 04d4b274e2a
("ipv6: sr: Add seg6local action End.BPF"). The reason is that the
per-CPU variable seg6\_bpf\_srh\_states::srh is never assigned in the self
test case but each BPF function expects it.

Remove test\_run for BPF\_PROG\_TYPE\_LWT\_SEG6LOCAL.

## Affected and fixed versions

- Linux: \>= 004d4b274e2a1a895a0e5dc66158b90a7d463d44, \< ea3fae6984ba0f054550e4da22219489c12cd8d4; \>= 004d4b274e2a1a895a0e5dc66158b90a7d463d44, \< a675524cfbe88fd49c05ff8807a08646983e687c; \>= 004d4b274e2a1a895a0e5dc66158b90a7d463d44, \< b05c2e25a5c168dbb46b6f7fcb741fd4e4f3b54a; \>= 004d4b274e2a1a895a0e5dc66158b90a7d463d44, \< e217492f6fa2228ad703ee3006d8fc4e5969fbd4; \>= 004d4b274e2a1a895a0e5dc66158b90a7d463d44, \< 9cd15511de7c619bbd0f54bb3f28e6e720ded5d6; \>= 004d4b274e2a1a895a0e5dc66158b90a7d463d44, \< c13fda93aca118b8e5cd202e339046728ee7dddb (cvelist)
- Linux: 4.18 (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-46754. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-46754.md
Affected: Linux >= 004d4b274e2a1a895a0e5dc66158b90a7d463d44, < ea3fae6984ba0f054550e4da22219489c12cd8d4; >= 004d4b274e2a1a895a0e5dc66158b90a7d463d44, < a675524cfbe88fd49c05ff8807a08646983e687c; >= 004d4b274e2a1a895a0e5dc66158b90a7d463d44, < b05c2e25a5c168dbb46b6f7fcb741fd4e4f3b54a; >= 004d4b274e2a1a895a0e5dc…
Fixed in: Linux 9cd15511de7c619bbd0f54bb3f28e6e720ded5d6

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

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

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

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

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

Linux \>= 004d4b274e2a1a895a0e5dc66158b90a7d463d44, \< ea3fae6984ba0f054550e4da22219489c12cd8d4; \>= 004d4b274e2a1a895a0e5dc66158b90a7d463d44, \< a675524cfbe88fd49c05ff8807a08646983e687c; \>= 004d4b274e2a1a895a0e5dc66158b90a7d463d44, \< b05c2e25a5c168dbb46b6f7fcb741fd4e4f3b54a; \>= 004d4b274e2a1a895a0e5dc66158b90a7d463d44, \< e217492f6fa2228ad703ee3006d8fc4e5969fbd4; \>= 004d4b274e2a1a895a0e5dc66158b90a7d463d44, \< 9cd15511de7c619bbd0f54bb3f28e6e720ded5d6; \>= 004d4b274e2a1a895a0e5dc66158b90a7d463d44, \< c13fda93aca118b8e5cd202e339046728ee7dddb; Linux 4.18.

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

Yes. Fixed in Linux 9cd15511de7c619bbd0f54bb3f28e6e720ded5d6. No fix listed yet: follow the vendor advisory.

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

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/9cd15511de7c619bbd0f54bb3f28e6e720ded5d6>
- patch: <https://git.kernel.org/stable/c/c13fda93aca118b8e5cd202e339046728ee7dddb>
- other: <https://git.kernel.org/stable/c/ea3fae6984ba0f054550e4da22219489c12cd8d4>
- other: <https://git.kernel.org/stable/c/a675524cfbe88fd49c05ff8807a08646983e687c>
- other: <https://git.kernel.org/stable/c/b05c2e25a5c168dbb46b6f7fcb741fd4e4f3b54a>
- other: <https://git.kernel.org/stable/c/e217492f6fa2228ad703ee3006d8fc4e5969fbd4>

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

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