bpf: Fix verifier assumptions about socket->sk
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix verifier assumptions about socket->sk The verifier assumes that 'sk' field in 'struct socket' is valid and non-NULL when 'socket' pointer itself is trusted and non-NULL. That may not be the case when socket was just created and passed to LSM socket_accept hook. Fix this verifier assumption and adjust tests.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.6.33, 6.8.12, 6.9.3
- CVEs
- CVE-2024-38566
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 5 Nov 2026, 05:25 UTC · Revision 1
Source evidence
bpf: Fix verifier assumptions about socket->sk
core-osv · Original sourcePublished 19 Jun 2024, 13:35 UTC
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix verifier assumptions about socket->sk The verifier assumes that 'sk' field in 'struct socket' is valid and non-NULL when 'socket' pointer itself is trusted and non-NULL. That may not be the case when socket was just created and passed to LSM socket_accept hook. Fix this verifier assumption and adjust tests.
osv:CVE-2024-38566
Kernel
Fixed versions: 6.6.33, 6.8.12, 6.9.3
Complete source record
{
"id": "856e26d1c1781dab1421123387595132b33c75ccb3a12b9cd06702372171bbf2",
"url": "https://osv.dev/vulnerability/CVE-2024-38566",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "bpf: Fix verifier assumptions about socket->sk",
"summary": "In the Linux kernel, the following vulnerability has been resolved: bpf: Fix verifier assumptions about socket->sk The verifier assumes that 'sk' field in 'struct socket' is valid and non-NULL when 'socket' pointer itself is trusted and non-NULL. That may not be the case when socket was just created and passed to LSM socket_accept hook. Fix this verifier assumption and adjust tests.",
"evidence": "osv:CVE-2024-38566",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.6.33",
"evidence": "/affected/1/ranges"
},
{
"value": "6.8.12",
"evidence": "/affected/1/ranges"
},
{
"value": "6.9.3",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2024-38566",
"aliases": [
"CVE-2024-38566"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "6fcd486b3a0a628c41f12b3a7329a18a2c74b351"
},
{
"fixed": "39f8a29330f433000e716eefc4b9abda05b71a82"
},
{
"fixed": "6f5ae91172a93abac9720ba94edf3ec8f4d7f24f"
},
{
"fixed": "c58ccdd2483a1d990748cdaf94206b5d5986a001"
},
{
"fixed": "0db63c0b86e981a1e97d2596d64ceceba1a5470e"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-38566.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.4.0"
},
{
"fixed": "6.6.33"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.8.12"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.9.0"
},
{
"fixed": "6.9.3"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-38566.json"
}
}
],
"modified": "2026-10-28T02:30:43.189716414Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/0db63c0b86e981a1e97d2596d64ceceba1a5470e",
"https://git.kernel.org/stable/c/39f8a29330f433000e716eefc4b9abda05b71a82",
"https://git.kernel.org/stable/c/6f5ae91172a93abac9720ba94edf3ec8f4d7f24f",
"https://git.kernel.org/stable/c/c58ccdd2483a1d990748cdaf94206b5d5986a001",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38566.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-38566",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38566.json"
}
},
"related_cves": [
{
"value": "CVE-2024-38566",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 510689,
"published_at": "2024-06-19T13:35:33.587+00:00"
}