net: af_can: do not leave a dangling sk pointer in can_create()
In the Linux kernel, the following vulnerability has been resolved: net: af_can: do not leave a dangling sk pointer in can_create() On error can_create() frees the allocated sk object, but sock_init_data() has already attached it to the provided sock object. This will leave a dangling sk pointer in the sock object and may cause use-after-free later.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.231, 5.15.174, 5.4.287, 6.1.120, 6.12.5, 6.6.66
- CVEs
- CVE-2024-56603
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 00:58 UTC · Revision 1
Source evidence
net: af_can: do not leave a dangling sk pointer in can_create()
core-osv · Original sourcePublished 27 Dec 2024, 14:51 UTC
In the Linux kernel, the following vulnerability has been resolved: net: af_can: do not leave a dangling sk pointer in can_create() On error can_create() frees the allocated sk object, but sock_init_data() has already attached it to the provided sock object. This will leave a dangling sk pointer in the sock object and may cause use-after-free later.
osv:CVE-2024-56603
Kernel
Fixed versions: 5.4.287, 5.10.231, 5.15.174, 6.1.120, 6.6.66, 6.12.5
Complete source record
{
"id": "1dec856a22bfefe46021472e6919d26a31f02f6b003d161a571094c9afd408d8",
"url": "https://osv.dev/vulnerability/CVE-2024-56603",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "net: af_can: do not leave a dangling sk pointer in can_create()",
"summary": "In the Linux kernel, the following vulnerability has been resolved: net: af_can: do not leave a dangling sk pointer in can_create() On error can_create() frees the allocated sk object, but sock_init_data() has already attached it to the provided sock object. This will leave a dangling sk pointer in the sock object and may cause use-after-free later.",
"evidence": "osv:CVE-2024-56603",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.4.287",
"evidence": "/affected/1/ranges"
},
{
"value": "5.10.231",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.174",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.120",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.66",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.5",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2024-56603",
"aliases": [
"CVE-2024-56603"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "0d66548a10cbbe0ef256852d63d30603f0f73f9b"
},
{
"fixed": "884ae8bcee749be43a071d6ed2d89058dbd2425c"
},
{
"fixed": "ce39b5576785bb3e66591145aad03d66bc3e778d"
},
{
"fixed": "1fe625f12d090d69f3f084990c7e4c1ff94bfe5f"
},
{
"fixed": "5947c9ac08f0771ea8ed64186b0d52e9029cb6c0"
},
{
"fixed": "db207d19adbac96058685f6257720906ad41d215"
},
{
"fixed": "8df832e6b945e1ba61467d7f1c9305e314ae92fe"
},
{
"fixed": "811a7ca7320c062e15d0f5b171fe6ad8592d1434"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56603.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "2.6.25"
},
{
"fixed": "5.4.287"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.5.0"
},
{
"fixed": "5.10.231"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.174"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.120"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.66"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.5"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56603.json"
}
}
],
"modified": "2026-10-28T02:30:48.605430857Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/1fe625f12d090d69f3f084990c7e4c1ff94bfe5f",
"https://git.kernel.org/stable/c/5947c9ac08f0771ea8ed64186b0d52e9029cb6c0",
"https://git.kernel.org/stable/c/811a7ca7320c062e15d0f5b171fe6ad8592d1434",
"https://git.kernel.org/stable/c/884ae8bcee749be43a071d6ed2d89058dbd2425c",
"https://git.kernel.org/stable/c/8df832e6b945e1ba61467d7f1c9305e314ae92fe",
"https://git.kernel.org/stable/c/ce39b5576785bb3e66591145aad03d66bc3e778d",
"https://git.kernel.org/stable/c/db207d19adbac96058685f6257720906ad41d215",
"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html",
"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56603.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-56603",
"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/56xxx/CVE-2024-56603.json"
}
},
"related_cves": [
{
"value": "CVE-2024-56603",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 516801,
"published_at": "2024-12-27T14:51:08.923+00:00"
}