{"id":"CVE-2025-38653","state":"PUBLISHED","title":"proc: use the same treatment to check proc_lseek as ones for proc_read_iter et.al","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nproc: use the same treatment to check proc_lseek as ones for proc_read_iter et.al\n\nCheck pde->proc_ops->proc_lseek directly may cause UAF in rmmod scenario. \nIt's a gap in proc_reg_open() after commit 654b33ada4ab(\"proc: fix UAF in\nproc_get_inode()\").  Followed by AI Viro's suggestion, fix it in same\nmanner.","publishedAt":"2025-08-22T16:00:57.413Z","updatedAt":"2026-10-15T22:02:27.473Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3f61631d47f115b83c935d0039f95cb68b0c8ab7","status":"affected","lessThan":"c35b0feb80b48720dfbbf4e33759c7be3faaebb6","versionType":"git"},{"version":"3f61631d47f115b83c935d0039f95cb68b0c8ab7","status":"affected","lessThan":"33c778ea0bd0fa62ff590497e72562ff90f82b13","versionType":"git"},{"version":"3f61631d47f115b83c935d0039f95cb68b0c8ab7","status":"affected","lessThan":"fc1072d934f687e1221d685cf1a49a5068318f34","versionType":"git"},{"version":"3f61631d47f115b83c935d0039f95cb68b0c8ab7","status":"affected","lessThan":"d136502e04d8853a9aecb335d07bbefd7a1519a8","versionType":"git"},{"version":"3f61631d47f115b83c935d0039f95cb68b0c8ab7","status":"affected","lessThan":"1fccbfbae1dd36198dc47feac696563244ad81d3","versionType":"git"},{"version":"3f61631d47f115b83c935d0039f95cb68b0c8ab7","status":"affected","lessThan":"ff7ec8dc1b646296f8d94c39339e8d3833d16c05","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/proc/generic.c","fs/proc/inode.c","fs/proc/internal.h","include/linux/proc_fs.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.0","versionType":"semver"},{"version":"6.1.148","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.102","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.42","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.15.10","status":"unaffected","lessThanOrEqual":"6.15.*","versionType":"semver"},{"version":"6.16.1","status":"unaffected","lessThanOrEqual":"6.16.*","versionType":"semver"},{"version":"6.17","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/proc/generic.c","fs/proc/inode.c","fs/proc/internal.h","include/linux/proc_fs.h"]}],"references":["https://git.kernel.org/stable/c/c35b0feb80b48720dfbbf4e33759c7be3faaebb6","https://git.kernel.org/stable/c/33c778ea0bd0fa62ff590497e72562ff90f82b13","https://git.kernel.org/stable/c/fc1072d934f687e1221d685cf1a49a5068318f34","https://git.kernel.org/stable/c/d136502e04d8853a9aecb335d07bbefd7a1519a8","https://git.kernel.org/stable/c/1fccbfbae1dd36198dc47feac696563244ad81d3","https://git.kernel.org/stable/c/ff7ec8dc1b646296f8d94c39339e8d3833d16c05","https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:09.358Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/38xxx/CVE-2025-38653.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-38653","state":"PUBLISHED","datePublished":"2025-08-22T16:00:57.413Z","dateUpdated":"2026-10-15T22:02:27.473Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T04:51:24.030Z"},"containers":{"cna":{"title":"proc: use the same treatment to check proc_lseek as ones for proc_read_iter et.al","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nproc: use the same treatment to check proc_lseek as ones for proc_read_iter et.al\n\nCheck pde->proc_ops->proc_lseek directly may cause UAF in rmmod scenario. \nIt's a gap in proc_reg_open() after commit 654b33ada4ab(\"proc: fix UAF in\nproc_get_inode()\").  Followed by AI Viro's suggestion, fix it in same\nmanner."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3f61631d47f115b83c935d0039f95cb68b0c8ab7","status":"affected","lessThan":"c35b0feb80b48720dfbbf4e33759c7be3faaebb6","versionType":"git"},{"version":"3f61631d47f115b83c935d0039f95cb68b0c8ab7","status":"affected","lessThan":"33c778ea0bd0fa62ff590497e72562ff90f82b13","versionType":"git"},{"version":"3f61631d47f115b83c935d0039f95cb68b0c8ab7","status":"affected","lessThan":"fc1072d934f687e1221d685cf1a49a5068318f34","versionType":"git"},{"version":"3f61631d47f115b83c935d0039f95cb68b0c8ab7","status":"affected","lessThan":"d136502e04d8853a9aecb335d07bbefd7a1519a8","versionType":"git"},{"version":"3f61631d47f115b83c935d0039f95cb68b0c8ab7","status":"affected","lessThan":"1fccbfbae1dd36198dc47feac696563244ad81d3","versionType":"git"},{"version":"3f61631d47f115b83c935d0039f95cb68b0c8ab7","status":"affected","lessThan":"ff7ec8dc1b646296f8d94c39339e8d3833d16c05","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/proc/generic.c","fs/proc/inode.c","fs/proc/internal.h","include/linux/proc_fs.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.0","versionType":"semver"},{"version":"6.1.148","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.102","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.42","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.15.10","status":"unaffected","lessThanOrEqual":"6.15.*","versionType":"semver"},{"version":"6.16.1","status":"unaffected","lessThanOrEqual":"6.16.*","versionType":"semver"},{"version":"6.17","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/proc/generic.c","fs/proc/inode.c","fs/proc/internal.h","include/linux/proc_fs.h"]}],"references":[{"url":"https://git.kernel.org/stable/c/c35b0feb80b48720dfbbf4e33759c7be3faaebb6"},{"url":"https://git.kernel.org/stable/c/33c778ea0bd0fa62ff590497e72562ff90f82b13"},{"url":"https://git.kernel.org/stable/c/fc1072d934f687e1221d685cf1a49a5068318f34"},{"url":"https://git.kernel.org/stable/c/d136502e04d8853a9aecb335d07bbefd7a1519a8"},{"url":"https://git.kernel.org/stable/c/1fccbfbae1dd36198dc47feac696563244ad81d3"},{"url":"https://git.kernel.org/stable/c/ff7ec8dc1b646296f8d94c39339e8d3833d16c05"}],"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 vulnerable code is reached through the open(2) syscall on a procfs entry, requiring local access to the system. There is no network-facing path to proc_reg_open().\nAC:L - The attacker fully controls their side of the race and can spin unbounded threads on open(), while widening the lookup-to-open window with memory pressure since proc_get_inode() allocates GFP_KERNEL; on Android/embedded targets the module-teardown side is also reachable by toggling user-facing device state (WiFi/BT/camera), so the race can be provoked at will.\nPR:L - Any unprivileged local user can open a world-readable module-created /proc entry (e.g. /proc/net/*, /proc/scsi/*, /proc/driver/*); the unguarded dereference happens before any capability or use_pde() gate.\nUI:N - The attacker's own open() performs the faulty dereference; no victim needs to open a file, mount a filesystem, or otherwise interact.\nS:U - The use-after-free occurs in kernel memory and its impact stays within the kernel's own security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - This is a use-after-free read of freed module memory through a dangling pde->proc_ops pointer, and freed-region contents that an attacker can groom (by triggering module loads that recycle the region) are consumed by the kernel and leak back through the resulting FMODE_LSEEK state.\nI:H - Use-after-free of a function-pointer table entry means kernel control-flow-relevant data is read from memory whose contents an attacker may influence via heap/module-region grooming, and such UAF conditions are treated as exploitable for corruption of kernel state.\nA:H - The dereference targets vmalloc-backed module memory that is unmapped on free, producing the same kernel page-fault oops documented in the companion fix 654b33ada4ab; the crash can be retriggered on every module unload."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T12:03:41.738Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.1.148"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.6.102"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.12.42"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.15.10"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.16.1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.17"}]}]}],"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"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T17:40:46.576Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2025-38653","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-10-15T21:52:33.974693Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-15T22:02:27.473Z"}}]}}}