bpf: Check sk_state before sk_protocol in bpf_tcp_*_syncookie (Linux Linux)

CVE-2026-80738
HIGH 7.3

At a glance

Source
NVD
EPSS
EPSS 0.16 % · percentile 5 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
Affected products
Linux · Linux
NVD status
Received

Description

In the Linux kernel, the following vulnerability has been resolved: bpf: Check sk_state before sk_protocol in bpf_tcp_*_syncookie bpf_tcp_gen_syncookie and bpf_tcp_check_syncookie accept a socket pointer 'sk' with argument type ARG_PTR_TO_BTF_ID_SOCK_COMMON. However, they access sk->sk_protocol without validating whether 'sk' represents a full socket. Fix this issue by checking sk->sk_state != TCP_LISTEN before inspecting sk->sk_protocol in both bpf_tcp_gen_syncookie and bpf_tcp_check_syncookie. Since mini-sockets are never in the TCP_LISTEN state, the condition short-circuits and prevents dereferencing fullsock-specific fields.

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.3CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:LLinux
CVSS 3.1HIGH 7.3CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:LNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)

European references

CERT-FR advisories

Affected products

ProductAffected versions
Linux · Linux
affected : ≥ 399040847084a69f345e0a52fd62f04654e0fce3 < b75f1c071f31be7f4b950721e04240c250091ad4
affected : ≥ 399040847084a69f345e0a52fd62f04654e0fce3 < 5702e4c259809c760912c477c4ae34e9217bb4d9
affected : ≥ 399040847084a69f345e0a52fd62f04654e0fce3 < b5525e853a2a08a9559adb84b0616025958dc542
affected : ≥ 399040847084a69f345e0a52fd62f04654e0fce3 < 22c2169770ad3b3595690e51caac875178cf496d
affected : ≥ 399040847084a69f345e0a52fd62f04654e0fce3 < 23f682083aa3fbc0c49667818efd6979a8bc5ac2
affected : ≥ 399040847084a69f345e0a52fd62f04654e0fce3 < 31a420a822ff92e2090bd5d65efe8e34e2d6d9b8
Other versions : unaffected
Linux · Linux
affected : 5.2
unaffected : ≥ 0 < 5.2
unaffected : ≥ 6.1.191 ≤ 6.1.*
unaffected : ≥ 6.6.160 ≤ 6.6.*
unaffected : ≥ 6.12.114 ≤ 6.12.*
unaffected : ≥ 6.18.57 ≤ 6.18.*
unaffected : ≥ 7.1.9 ≤ 7.1.*
unaffected : ≥ 7.2 ≤ *
Other versions : affected

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD