netlink: Fix kernel-infoleak-after-free in __skb_datagram_iter
In the Linux kernel, the following vulnerability has been resolved: netlink: Fix kernel-infoleak-after-free in __skb_datagram_iter syzbot reported the following uninit-value access issue [1]: netlink_to_full_skb() creates a new `skb` and puts the `skb->data` passed as a 1st arg of netlink_to_full_skb() onto new `skb`. The data size is specified as `len` and passed to skb_put_data(). This `len` is based on `skb->end` that is not data offset but buffer offset. The `skb->end` contains data and tailroom. Since the tailroom is not initialized when the new `skb` created, KMSAN detects uninitialized memory area when copying the data. This patch resolved this issue by correct the len from `skb->end` to `skb->len`, which is the actual data offset. BUG: KMSAN: kernel-infoleak-after-free in instrument_copy_to_user include/linux/instrumented.h:114 [inline] BUG: KMSAN: kernel-infoleak-after-free in copy_to_user_iter lib/iov_iter.c:24 [inline] BUG: KMSAN: kernel-infoleak-after-free in iterate_ubuf include/linux/iov_iter.h:29 [inline] BUG: KMSAN: kernel-infoleak-after-free in iterate_and_advance2 include/linux/iov_iter.h:245 [inline] BUG: KMSAN: kernel-infoleak-after-free in iterate_and_advance include/linux/iov_iter.h:271 [inline] BUG: KMSAN: kernel-infoleak-after-free in _copy_to_iter+0x364/0x2520 lib/iov_iter.c:186 instrument_copy_to_user include/linux/instrumented.h:114 [inline] copy_to_user_iter lib/iov_iter.c:24 [inline] iterate_ubuf include/linux/iov_iter.h:29 [inline] iterate_and_ad
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 4.19.309, 5.10.212, 5.15.151, 5.4.271, 6.1.81, 6.6.21, 6.7.9
- CVEs
- CVE-2024-26805
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 14:09 UTC · Revision 1
Source evidence
netlink: Fix kernel-infoleak-after-free in __skb_datagram_iter
core-osv · Original sourcePublished 4 Apr 2024, 08:20 UTC
In the Linux kernel, the following vulnerability has been resolved: netlink: Fix kernel-infoleak-after-free in __skb_datagram_iter syzbot reported the following uninit-value access issue [1]: netlink_to_full_skb() creates a new `skb` and puts the `skb->data` passed as a 1st arg of netlink_to_full_skb() onto new `skb`. The data size is specified as `len` and passed to skb_put_data(). This `len` is based on `skb->end` that is not data offset but buffer offset. The `skb->end` contains data and tailroom. Since the tailroom is not initialized when the new `skb` created, KMSAN detects uninitialized memory area when copying the data. This patch resolved this issue by correct the len from `skb->end` to `skb->len`, which is the actual data offset. BUG: KMSAN: kernel-infoleak-after-free in instrument_copy_to_user include/linux/instrumented.h:114 [inline] BUG: KMSAN: kernel-infoleak-after-free in copy_to_user_iter lib/iov_iter.c:24 [inline] BUG: KMSAN: kernel-infoleak-after-free in iterate_ubuf include/linux/iov_iter.h:29 [inline] BUG: KMSAN: kernel-infoleak-after-free in iterate_and_advance2 include/linux/iov_iter.h:245 [inline] BUG: KMSAN: kernel-infoleak-after-free in iterate_and_advance include/linux/iov_iter.h:271 [inline] BUG: KMSAN: kernel-infoleak-after-free in _copy_to_iter+0x364/0x2520 lib/iov_iter.c:186 instrument_copy_to_user include/linux/instrumented.h:114 [inline] copy_to_user_iter lib/iov_iter.c:24 [inline] iterate_ubuf include/linux/iov_iter.h:29 [inline] iterate_and_ad
osv:CVE-2024-26805
Kernel
Fixed versions: 4.19.309, 5.4.271, 5.10.212, 5.15.151, 6.1.81, 6.6.21, 6.7.9
Complete source record
{
"id": "18a30a439715555ac803bfb533f487c0a8c5d7e7c17107c9b433362762ca3dd0",
"url": "https://osv.dev/vulnerability/CVE-2024-26805",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "netlink: Fix kernel-infoleak-after-free in __skb_datagram_iter",
"summary": "In the Linux kernel, the following vulnerability has been resolved: netlink: Fix kernel-infoleak-after-free in __skb_datagram_iter syzbot reported the following uninit-value access issue [1]: netlink_to_full_skb() creates a new `skb` and puts the `skb->data` passed as a 1st arg of netlink_to_full_skb() onto new `skb`. The data size is specified as `len` and passed to skb_put_data(). This `len` is based on `skb->end` that is not data offset but buffer offset. The `skb->end` contains data and tailroom. Since the tailroom is not initialized when the new `skb` created, KMSAN detects uninitialized memory area when copying the data. This patch resolved this issue by correct the len from `skb->end` to `skb->len`, which is the actual data offset. BUG: KMSAN: kernel-infoleak-after-free in instrument_copy_to_user include/linux/instrumented.h:114 [inline] BUG: KMSAN: kernel-infoleak-after-free in copy_to_user_iter lib/iov_iter.c:24 [inline] BUG: KMSAN: kernel-infoleak-after-free in iterate_ubuf include/linux/iov_iter.h:29 [inline] BUG: KMSAN: kernel-infoleak-after-free in iterate_and_advance2 include/linux/iov_iter.h:245 [inline] BUG: KMSAN: kernel-infoleak-after-free in iterate_and_advance include/linux/iov_iter.h:271 [inline] BUG: KMSAN: kernel-infoleak-after-free in _copy_to_iter+0x364/0x2520 lib/iov_iter.c:186 instrument_copy_to_user include/linux/instrumented.h:114 [inline] copy_to_user_iter lib/iov_iter.c:24 [inline] iterate_ubuf include/linux/iov_iter.h:29 [inline] iterate_and_ad",
"evidence": "osv:CVE-2024-26805",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.19.309",
"evidence": "/affected/1/ranges"
},
{
"value": "5.4.271",
"evidence": "/affected/1/ranges"
},
{
"value": "5.10.212",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.151",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.81",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.21",
"evidence": "/affected/1/ranges"
},
{
"value": "6.7.9",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2024-26805",
"aliases": [
"CVE-2024-26805"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "1853c949646005b5959c483becde86608f548f24"
},
{
"fixed": "ec343a55b687a452f5e87f3b52bf9f155864df65"
},
{
"fixed": "9ae51361da43270f4ba0eb924427a07e87e48777"
},
{
"fixed": "f19d1f98e60e68b11fc60839105dd02a30ec0d77"
},
{
"fixed": "c71ed29d15b1a1ed6c464f8c3536996963046285"
},
{
"fixed": "0b27bf4c494d61e5663baa34c3edd7ccebf0ea44"
},
{
"fixed": "d3ada42e534a83b618bbc1e490d23bf0fdae4736"
},
{
"fixed": "59fc3e3d049e39e7d0d271f20dd5fb47c57faf1d"
},
{
"fixed": "661779e1fcafe1b74b3f3fe8e980c1e207fea1fd"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "3.12.49"
},
{
"fixed": "3.13"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "3.14.54"
},
{
"fixed": "3.15"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "3.18.23"
},
{
"fixed": "3.19"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "4.1.10"
},
{
"fixed": "4.2"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "4.2.3"
},
{
"fixed": "4.3"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "92994a5f49d0a81c8643452d5c0a6e8b31d85a61"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "85aec6328f3346b0718211faad564a3ffa64f60e"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "d38200098e3203ba30ba06ed3f345ec6ca75234c"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "65d48c630ff80a19c39751a4a6d3315f4c3c0280"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "62f43b58d2b2c4f0200b9ca2b997f4c484f0272f"
}
]
}
],
"versions": [
"v3.12.74",
"v3.12.73",
"v3.12.72",
"v3.12.71",
"v3.12.70",
"v3.12.69",
"v3.12.68",
"v3.12.67",
"v3.12.66",
"v3.12.65",
"v3.12.64",
"v3.12.63",
"v3.12.62",
"v3.12.61",
"v3.12.60",
"v3.12.59",
"v3.12.58",
"v3.12.57",
"v3.12.56",
"v3.12.55",
"v3.12.54",
"v3.12.53",
"v3.12.52",
"v3.12.51",
"v3.12.50",
"v3.12.49",
"v3.14.79",
"v3.14.78",
"v3.14.77",
"v3.14.76",
"v3.14.75",
"v3.14.74",
"v3.14.73",
"v3.14.72",
"v3.14.71",
"v3.14.70",
"v3.14.69",
"v3.14.68",
"v3.14.67",
"v3.14.66",
"v3.14.65",
"v3.14.64",
"v3.14.63",
"v3.14.62",
"v3.14.61",
"v3.14.60",
"v3.14.59",
"v3.14.58",
"v3.14.57",
"v3.14.56",
"v3.14.55",
"v3.14.54",
"v3.18.140",
"v3.18.139",
"v3.18.138",
"v3.18.137",
"v3.18.136",
"v3.18.135",
"v3.18.134",
"v3.18.133",
"v3.18.132",
"v3.18.131",
"v3.18.130",
"v3.18.129",
"v3.18.128",
"v3.18.127",
"v3.18.126",
"v3.18.125",
"v3.18.124",
"v3.18.123",
"v3.18.122",
"v3.18.121",
"v3.18.120",
"v3.18.119",
"v3.18.118",
"v3.18.117",
"v3.18.116",
"v3.18.115",
"v3.18.114",
"v3.18.113",
"v3.18.112",
"v3.18.111",
"v3.18.110",
"v3.18.109",
"v3.18.108",
"v3.18.107",
"v3.18.106",
"v3.18.105",
"v3.18.104",
"v3.18.103",
"v3.18.102",
"v3.18.101",
"v3.18.100",
"v3.18.99",
"v3.18.98",
"v3.18.97",
"v3.18.96",
"v3.18.95",
"v3.18.94",
"v3.18.93",
"v3.18.92",
"v3.18.91",
"v3.18.90",
"v3.18.89",
"v3.18.88",
"v3.18.87",
"v3.18.86",
"v3.18.85",
"v3.18.84",
"v3.18.83",
"v3.18.82",
"v3.18.81",
"v3.18.80",
"v3.18.79",
"v3.18.78",
"v3.18.77",
"v3.18.76",
"v3.18.75",
"v3.18.74",
"v3.18.73",
"v3.18.72",
"v3.18.71",
"v3.18.70",
"v3.18.69",
"v3.18.68",
"v3.18.67",
"v3.18.66",
"v3.18.65",
"v3.18.64",
"v3.18.63",
"v3.18.62",
"v3.18.61",
"v3.18.60",
"v3.18.59",
"v3.18.58",
"v3.18.57",
"v3.18.56",
"v3.18.55",
"v3.18.54",
"v3.18.53",
"v3.18.52",
"v3.18.51",
"v3.18.50",
"v3.18.49",
"v3.18.48",
"v3.18.47",
"v3.18.46",
"v3.18.45",
"v3.18.44",
"v3.18.43",
"v3.18.42",
"v3.18.41",
"v3.18.40",
"v3.18.39",
"v3.18.38",
"v3.18.37",
"v3.18.36",
"v3.18.35",
"v3.18.34",
"v3.18.33",
"v3.18.32",
"v3.18.31",
"v3.18.30",
"v3.18.29",
"v3.18.28",
"v3.18.27",
"v3.18.26",
"v3.18.25",
"v3.18.24",
"v3.18.23",
"v4.1.52",
"v4.1.51",
"v4.1.50",
"v4.1.49",
"v4.1.48",
"v4.1.47",
"v4.1.46",
"v4.1.45",
"v4.1.44",
"v4.1.43",
"v4.1.42",
"v4.1.41",
"v4.1.40",
"v4.1.39",
"v4.1.38",
"v4.1.37",
"v4.1.36",
"v4.1.35",
"v4.1.34",
"v4.1.33",
"v4.1.32",
"v4.1.31",
"v4.1.30",
"v4.1.29",
"v4.1.28",
"v4.1.27",
"v4.1.26",
"v4.1.25",
"v4.1.24",
"v4.1.23",
"v4.1.22",
"v4.1.21",
"v4.1.20",
"v4.1.19",
"v4.1.18",
"v4.1.17",
"v4.1.16",
"v4.1.15",
"v4.1.14",
"v4.1.13",
"v4.1.12",
"v4.1.11",
"v4.1.10",
"v4.2.8",
"v4.2.7",
"v4.2.6",
"v4.2.5",
"v4.2.4",
"v4.2.3"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26805.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.3.0"
},
{
"fixed": "4.19.309"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.20.0"
},
{
"fixed": "5.4.271"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.5.0"
},
{
"fixed": "5.10.212"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.151"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.81"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.21"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.7.9"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26805.json"
}
}
],
"modified": "2026-10-28T02:30:29.410161394Z",
"provider": "osv",
"references": [
"https://cert-portal.siemens.com/productcert/html/ssa-398330.html",
"https://cert-portal.siemens.com/productcert/html/ssa-613116.html",
"https://git.kernel.org/stable/c/0b27bf4c494d61e5663baa34c3edd7ccebf0ea44",
"https://git.kernel.org/stable/c/59fc3e3d049e39e7d0d271f20dd5fb47c57faf1d",
"https://git.kernel.org/stable/c/661779e1fcafe1b74b3f3fe8e980c1e207fea1fd",
"https://git.kernel.org/stable/c/9ae51361da43270f4ba0eb924427a07e87e48777",
"https://git.kernel.org/stable/c/c71ed29d15b1a1ed6c464f8c3536996963046285",
"https://git.kernel.org/stable/c/d3ada42e534a83b618bbc1e490d23bf0fdae4736",
"https://git.kernel.org/stable/c/ec343a55b687a452f5e87f3b52bf9f155864df65",
"https://git.kernel.org/stable/c/f19d1f98e60e68b11fc60839105dd02a30ec0d77",
"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html",
"https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26805.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-26805",
"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/26xxx/CVE-2024-26805.json"
}
},
"related_cves": [
{
"value": "CVE-2024-26805",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 495993,
"published_at": "2024-04-04T08:20:32.25+00:00"
}