proc: use the same treatment to check proc_lseek as ones for proc_read_iter et.al
In the Linux kernel, the following vulnerability has been resolved: proc: use the same treatment to check proc_lseek as ones for proc_read_iter et.al Check pde->proc_ops->proc_lseek directly may cause UAF in rmmod scenario. It's a gap in proc_reg_open() after commit 654b33ada4ab("proc: fix UAF in proc_get_inode()"). Followed by AI Viro's suggestion, fix it in same manner.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.1.148, 6.12.42, 6.15.10, 6.16.1, 6.6.102
- CVEs
- CVE-2025-38653
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 04:20 UTC · Revision 1
Source evidence
proc: use the same treatment to check proc_lseek as ones for proc_read_iter et.al
core-osv · Original sourcePublished 22 Aug 2025, 16:00 UTC
In the Linux kernel, the following vulnerability has been resolved: proc: use the same treatment to check proc_lseek as ones for proc_read_iter et.al Check pde->proc_ops->proc_lseek directly may cause UAF in rmmod scenario. It's a gap in proc_reg_open() after commit 654b33ada4ab("proc: fix UAF in proc_get_inode()"). Followed by AI Viro's suggestion, fix it in same manner.
osv:CVE-2025-38653
Kernel
Fixed versions: 6.1.148, 6.6.102, 6.12.42, 6.15.10, 6.16.1
Complete source record
{
"id": "713733e8eb1d5620995e9fcba0f27873712613df1170f279e02aa9a79963ec49",
"url": "https://osv.dev/vulnerability/CVE-2025-38653",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "proc: use the same treatment to check proc_lseek as ones for proc_read_iter et.al",
"summary": "In the Linux kernel, the following vulnerability has been resolved: proc: use the same treatment to check proc_lseek as ones for proc_read_iter et.al Check pde->proc_ops->proc_lseek directly may cause UAF in rmmod scenario. It's a gap in proc_reg_open() after commit 654b33ada4ab(\"proc: fix UAF in proc_get_inode()\"). Followed by AI Viro's suggestion, fix it in same manner.",
"evidence": "osv:CVE-2025-38653",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.1.148",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.102",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.42",
"evidence": "/affected/1/ranges"
},
{
"value": "6.15.10",
"evidence": "/affected/1/ranges"
},
{
"value": "6.16.1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2025-38653",
"aliases": [
"CVE-2025-38653"
],
"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": "3f61631d47f115b83c935d0039f95cb68b0c8ab7"
},
{
"fixed": "c35b0feb80b48720dfbbf4e33759c7be3faaebb6"
},
{
"fixed": "33c778ea0bd0fa62ff590497e72562ff90f82b13"
},
{
"fixed": "fc1072d934f687e1221d685cf1a49a5068318f34"
},
{
"fixed": "d136502e04d8853a9aecb335d07bbefd7a1519a8"
},
{
"fixed": "1fccbfbae1dd36198dc47feac696563244ad81d3"
},
{
"fixed": "ff7ec8dc1b646296f8d94c39339e8d3833d16c05"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38653.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.0.0"
},
{
"fixed": "6.1.148"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.102"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.42"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.15.10"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.16.0"
},
{
"fixed": "6.16.1"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38653.json"
}
}
],
"modified": "2026-10-28T02:30:33.164311082Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/1fccbfbae1dd36198dc47feac696563244ad81d3",
"https://git.kernel.org/stable/c/33c778ea0bd0fa62ff590497e72562ff90f82b13",
"https://git.kernel.org/stable/c/c35b0feb80b48720dfbbf4e33759c7be3faaebb6",
"https://git.kernel.org/stable/c/d136502e04d8853a9aecb335d07bbefd7a1519a8",
"https://git.kernel.org/stable/c/fc1072d934f687e1221d685cf1a49a5068318f34",
"https://git.kernel.org/stable/c/ff7ec8dc1b646296f8d94c39339e8d3833d16c05",
"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38653.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-38653",
"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/2025/38xxx/CVE-2025-38653.json"
}
},
"related_cves": [
{
"value": "CVE-2025-38653",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 500255,
"published_at": "2025-08-22T16:00:57.413+00:00"
}