block: refine the EOF check in blkdev_iomap_begin
In the Linux kernel, the following vulnerability has been resolved: block: refine the EOF check in blkdev_iomap_begin blkdev_iomap_begin rounds down the offset to the logical block size before stashing it in iomap->offset and checking that it still is inside the inode size. Check the i_size check to the raw pos value so that we don't try a zero size write if iter->pos is unaligned.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.6.33, 6.8.12, 6.9.3
- CVEs
- CVE-2024-38604
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 16:58 UTC · Revision 1
Source evidence
block: refine the EOF check in blkdev_iomap_begin
core-osv · Original sourcePublished 19 Jun 2024, 13:48 UTC
In the Linux kernel, the following vulnerability has been resolved: block: refine the EOF check in blkdev_iomap_begin blkdev_iomap_begin rounds down the offset to the logical block size before stashing it in iomap->offset and checking that it still is inside the inode size. Check the i_size check to the raw pos value so that we don't try a zero size write if iter->pos is unaligned.
osv:CVE-2024-38604
Kernel
Fixed versions: 6.6.33, 6.8.12, 6.9.3
Complete source record
{
"id": "88fc9031c689fb87b095aeba5197b8c215ea47a7f40cdea81ffa25d38ac06886",
"url": "https://osv.dev/vulnerability/CVE-2024-38604",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "block: refine the EOF check in blkdev_iomap_begin",
"summary": "In the Linux kernel, the following vulnerability has been resolved: block: refine the EOF check in blkdev_iomap_begin blkdev_iomap_begin rounds down the offset to the logical block size before stashing it in iomap->offset and checking that it still is inside the inode size. Check the i_size check to the raw pos value so that we don't try a zero size write if iter->pos is unaligned.",
"evidence": "osv:CVE-2024-38604",
"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-38604",
"aliases": [
"CVE-2024-38604"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "487c607df790d366e67a7d6a30adf785cdd98e55"
},
{
"fixed": "910717920c8c3f9386277a44c44d448058a18084"
},
{
"fixed": "72c54e063c32aeb38d43a2bd897821e6e5a1757d"
},
{
"fixed": "10b723bcba8986537a484aa94dbfc9093fd776a1"
},
{
"fixed": "0c12028aec837f5a002009bbf68d179d506510e8"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-38604.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.6.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-38604.json"
}
}
],
"modified": "2026-10-28T02:30:37.782253909Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/0c12028aec837f5a002009bbf68d179d506510e8",
"https://git.kernel.org/stable/c/10b723bcba8986537a484aa94dbfc9093fd776a1",
"https://git.kernel.org/stable/c/72c54e063c32aeb38d43a2bd897821e6e5a1757d",
"https://git.kernel.org/stable/c/910717920c8c3f9386277a44c44d448058a18084",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38604.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-38604",
"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-38604.json"
}
},
"related_cves": [
{
"value": "CVE-2024-38604",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 505010,
"published_at": "2024-06-19T13:48:15.099+00:00"
}