# bpf: Explicitly check accesses to bpf_sock_addr

CVE record · `CVE-2025-40078`

- **Identifiers:** `CVE-2025-40078`
- **State:** Confirmed
- **Severity:** No CVSS score
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 28 Oct 2025
- **Updated:** 10 Nov 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 28 Oct 2025, 11:48 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `1cedee13d25ab118d325f95588c1a084e9317229 to before de44cdc50d2dce8718cb57deddf9cf1be9a7759f` (git)
  - affected: `1cedee13d25ab118d325f95588c1a084e9317229 to before 76e04bbb4296fb6eac084dbfc27e02ccc744db3e` (git)
  - affected: `1cedee13d25ab118d325f95588c1a084e9317229 to before 6d8b1a21fd5c34622b0c3893c61e4a38d8ba53ec` (git)
  - affected: `1cedee13d25ab118d325f95588c1a084e9317229 to before 4f00858cd9bbbdf67159e28b85a8ca9e77c83622` (git)
  - affected: `1cedee13d25ab118d325f95588c1a084e9317229 to before cdeafacb4f9ff261a96baef519e29480fd7b1019` (git)
  - affected: `1cedee13d25ab118d325f95588c1a084e9317229 to before fe9d33f0470350558cb08cecb54cf2267b3a45d2` (git)
  - affected: `1cedee13d25ab118d325f95588c1a084e9317229 to before ad8b4fe5617e3c85fc23267f02500c4f3bf0ff69` (git)
  - affected: `1cedee13d25ab118d325f95588c1a084e9317229 to before 6fabca2fc94d33cdf7ec102058983b086293395f` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `4.18`
  - unaffected: `before 4.18` (semver)
  - unaffected: `5.4.301 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.246 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.195 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.156 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.112 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.53 to 6.12.*, inclusive` (semver)
  - unaffected: `6.17.3 to 6.17.*, inclusive` (semver)
  - unaffected: `6.18 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The Linux kernel BPF verifier is affected from version 4.18 until fixes in the stable releases 5.4.301, 5.10.246, 5.15.195 and 6.1.156. A BPF program that reads an implicit padding field in the sock_addr context triggers a verifier error and kernel warning, and the source gives few details on who can load such a program. Upgrade to a fixed kernel release, such as 5.4.301, 5.10.246, 5.15.195, 6.1.156 or later.

Written 19 Nov 2026.

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

No source has published a CVSS score for this record yet.

- **CISA KEV:** Not listed.
- **EPSS:** 0.0024, the 15th percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 28 Oct 2025, 11:48 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2025-40078)
- 28 Oct 2025, 12:15 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2025-40078)

## Sources

- [CVE List: CVE-2025-40078](https://www.cve.org/CVERecord?id=CVE-2025-40078)
- [NVD: CVE-2025-40078](https://nvd.nist.gov/vuln/detail/CVE-2025-40078)

### References from the CNA

- <https://git.kernel.org/stable/c/de44cdc50d2dce8718cb57deddf9cf1be9a7759f>
- <https://git.kernel.org/stable/c/76e04bbb4296fb6eac084dbfc27e02ccc744db3e>
- <https://git.kernel.org/stable/c/6d8b1a21fd5c34622b0c3893c61e4a38d8ba53ec>
- <https://git.kernel.org/stable/c/4f00858cd9bbbdf67159e28b85a8ca9e77c83622>
- <https://git.kernel.org/stable/c/cdeafacb4f9ff261a96baef519e29480fd7b1019>
- <https://git.kernel.org/stable/c/fe9d33f0470350558cb08cecb54cf2267b3a45d2>
- <https://git.kernel.org/stable/c/ad8b4fe5617e3c85fc23267f02500c4f3bf0ff69>
- <https://git.kernel.org/stable/c/6fabca2fc94d33cdf7ec102058983b086293395f>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2025-40078>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2025-40078/>. Everything for agents: <https://agentprime.io/llms.txt>.
