Files
vuln-cve/data/2025/38xxx/CVE-2025-38065.json
T

282 lines
15 KiB
JSON

{
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"cveMetadata": {
"cveId": "CVE-2025-38065",
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"state": "PUBLISHED",
"assignerShortName": "Linux",
"dateReserved": "2025-04-16T04:51:23.980Z",
"datePublished": "2025-06-18T09:33:44.048Z",
"dateUpdated": "2026-08-05T11:59:12.729Z"
},
"containers": {
"cna": {
"providerMetadata": {
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux",
"dateUpdated": "2026-08-05T11:59:12.729Z"
},
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\norangefs: Do not truncate file size\n\n'len' is used to store the result of i_size_read(), so making 'len'\na size_t results in truncation to 4GiB on 32-bit systems."
}
],
"metrics": [
{
"cvssV3_1": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"baseScore": 7.8,
"baseSeverity": "HIGH"
},
"scenarios": [
{
"lang": "en",
"value": "AV:L - The vulnerability is reached through ordinary write(2)/ftruncate(2)/fsync(2) syscalls against a file on a locally mounted OrangeFS filesystem, driven by the page-cache writeback path. No network protocol handler processes attacker data to reach the flaw.\nAC:L - On an affected system (32-bit kernel with an OrangeFS mount) every trigger condition is entirely attacker-controlled — the file size, the write offset, and the timing of writeback via fsync/msync or the synchronous launder_folio path in orangefs_write_begin — with no race to win and no dependence on memory layout.\nPR:L - Any unprivileged local user with write permission to a directory on the OrangeFS mount can create the oversized file and dirty a page at a high offset; OrangeFS scratch space is typically group- or world-writable. No capability check exists on the write/writeback path.\nUI:N - The OrangeFS mount is an existing part of the deployment, not something the attacker must convince a victim to establish; exploitation is entirely self-driven by the attacker's own file writes and fsync.\nS:U - The out-of-bounds read and write occur within kernel memory under the same security authority as the vulnerable component; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - The multi-gigabyte bvec makes iterate_bvec() walk adjacent struct pages past the single dirty page, copying arbitrary kernel and other-process memory into the OrangeFS shared bufmap, which is mmap'd by the userspace pvfs2-client-core process and transmitted to the OrangeFS server — a large-scale kernel memory disclosure.\nI:H - orangefs_bufmap_copy_from_iovec() loops with no bound on the descriptor index, reading to->page_array[i] far past the end of the kmalloc'd array and using the resulting wild struct page pointers as copy_page_from_iter() destinations, giving an out-of-bounds kernel write of attacker-controlled page-cache data.\nA:H - Dereferencing garbage struct page pointers and kmapping invalid PFNs across gigabytes of address space reliably produces a kernel oops or panic; the spurious WARN_ON()s also panic outright under panic_on_warn."
}
]
}
],
"affected": [
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "unaffected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"fs/orangefs/inode.c"
],
"versions": [
{
"version": "f7ab093f74bf638ed98fd1115f3efa17e308bb7f",
"lessThan": "ceaf195ed285b77791e29016ee6344b3ded609b3",
"status": "affected",
"versionType": "git"
},
{
"version": "f7ab093f74bf638ed98fd1115f3efa17e308bb7f",
"lessThan": "341e3a5984cf5761f3dab16029d7e9fb1641d5ff",
"status": "affected",
"versionType": "git"
},
{
"version": "f7ab093f74bf638ed98fd1115f3efa17e308bb7f",
"lessThan": "5111227d7f1f57f6804666b3abf780a23f44fc1d",
"status": "affected",
"versionType": "git"
},
{
"version": "f7ab093f74bf638ed98fd1115f3efa17e308bb7f",
"lessThan": "15602508ad2f923e228b9521960b4addcd27d9c4",
"status": "affected",
"versionType": "git"
},
{
"version": "f7ab093f74bf638ed98fd1115f3efa17e308bb7f",
"lessThan": "121f0335d91e46369bf55b5da4167d82b099a166",
"status": "affected",
"versionType": "git"
},
{
"version": "f7ab093f74bf638ed98fd1115f3efa17e308bb7f",
"lessThan": "cd918ec24168fe08c6aafc077dd3b6d88364c5cf",
"status": "affected",
"versionType": "git"
},
{
"version": "f7ab093f74bf638ed98fd1115f3efa17e308bb7f",
"lessThan": "2323b806221e6268a4e17711bc72e2fc87c191a3",
"status": "affected",
"versionType": "git"
},
{
"version": "f7ab093f74bf638ed98fd1115f3efa17e308bb7f",
"lessThan": "062e8093592fb866b8e016641a8b27feb6ac509d",
"status": "affected",
"versionType": "git"
}
]
},
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "affected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"fs/orangefs/inode.c"
],
"versions": [
{
"version": "4.6",
"status": "affected"
},
{
"version": "0",
"lessThan": "4.6",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "5.4.294",
"lessThanOrEqual": "5.4.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "5.10.238",
"lessThanOrEqual": "5.10.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "5.15.185",
"lessThanOrEqual": "5.15.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.1.141",
"lessThanOrEqual": "6.1.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.6.93",
"lessThanOrEqual": "6.6.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.12.31",
"lessThanOrEqual": "6.12.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.14.9",
"lessThanOrEqual": "6.14.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.15",
"lessThanOrEqual": "*",
"status": "unaffected",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "4.6",
"versionEndExcluding": "5.4.294"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "4.6",
"versionEndExcluding": "5.10.238"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "4.6",
"versionEndExcluding": "5.15.185"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "4.6",
"versionEndExcluding": "6.1.141"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "4.6",
"versionEndExcluding": "6.6.93"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "4.6",
"versionEndExcluding": "6.12.31"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "4.6",
"versionEndExcluding": "6.14.9"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "4.6",
"versionEndExcluding": "6.15"
}
]
}
]
}
],
"references": [
{
"url": "https://git.kernel.org/stable/c/ceaf195ed285b77791e29016ee6344b3ded609b3"
},
{
"url": "https://git.kernel.org/stable/c/341e3a5984cf5761f3dab16029d7e9fb1641d5ff"
},
{
"url": "https://git.kernel.org/stable/c/5111227d7f1f57f6804666b3abf780a23f44fc1d"
},
{
"url": "https://git.kernel.org/stable/c/15602508ad2f923e228b9521960b4addcd27d9c4"
},
{
"url": "https://git.kernel.org/stable/c/121f0335d91e46369bf55b5da4167d82b099a166"
},
{
"url": "https://git.kernel.org/stable/c/cd918ec24168fe08c6aafc077dd3b6d88364c5cf"
},
{
"url": "https://git.kernel.org/stable/c/2323b806221e6268a4e17711bc72e2fc87c191a3"
},
{
"url": "https://git.kernel.org/stable/c/062e8093592fb866b8e016641a8b27feb6ac509d"
}
],
"title": "orangefs: Do not truncate file size",
"x_generator": {
"engine": "bippy-1.2.0"
}
},
"adp": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html"
},
{
"url": "https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html"
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2025-11-03T17:33:32.733Z"
}
}
]
}
}