CVE-2025-40143: bpf: dont report verifier bug for missing bpf_scc_visit on speculative path

Published Nov 12, 2025
·
Updated

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

bpf: dont report verifier bug for missing bpfsccvisit on speculative path

Syzbot generated a program that triggers a verifierbug() call in maybeexitscc(). maybeexitscc() assumes that, when called for a state with insnidx in some SCC, there should be an instance of struct bpfsccvisit allocated for that SCC. Turns out the assumption does not hold for speculative execution paths. See example in the next patch.

maybesccexit() is called from updatebranchcounts() for states that reach branch count of zero, meaning that path exploration for a particular path is finished. Path exploration can finish in one of three ways: a. Verification error is found. In this case, updatebranchcounts() is called only for non-speculative paths. b. Top level BPFEXIT is reached. Such instructions are never a part of an SCC, so computescccallchain() in maybesccexit() will return false, and maybesccexit() will return early. c. A checkpoint is reached and matched. Checkpoints are created by isstatevisited(), which calls maybeenterscc(), which allocates bpfsccvisit instances for checkpoints within SCCs.

Hence, for non-speculative symbolic execution paths, the assumption still holds: if maybesccexit() is called for a state within an SCC, bpfsccvisit instance must exist.

This patch removes the verifierbug() call for speculative paths.

Affected Software

1 affected component
Linux Linux kernel

Event History

Nov 12, 2025
CVE Published
via MITRE·10:23 AM
Data Sourced
via MITRE·10:23 AM
Description
Data Sourced
via NVD·11:15 AM
Description

Frequently Asked Questions

1

What is the severity of CVE-2025-40143?

CVE-2025-40143 has been identified as a medium severity vulnerability in the Linux kernel.

2

How do I fix CVE-2025-40143?

To address CVE-2025-40143, update your Linux kernel to the latest stable version that contains the fix.

3

What components are affected by CVE-2025-40143?

CVE-2025-40143 affects the Linux kernel, specifically related to the BPF verifier.

4

Is CVE-2025-40143 exploitable?

CVE-2025-40143 can potentially be exploited through specially crafted BPF programs.

5

What does CVE-2025-40143 involve?

CVE-2025-40143 involves a verifier bug in the BPF subsystem during speculative execution paths.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203