{"id":"CVE-2026-90391","state":"PUBLISHED","title":"lib/test_hmm: fail dmirror_fault() when the mirrored mm is gone","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nlib/test_hmm: fail dmirror_fault() when the mirrored mm is gone\n\ndmirror_fault() is called from the dmirror_read() and dmirror_write()\nretry loops after dmirror_do_read() or dmirror_do_write() finds a missing\ndevice page table entry.\n\nIf the mirrored mm has already exited, mmget_not_zero() fails.  The\ncurrent code returns 0 in that case, which tells the caller that faulting\nsucceeded even though no page was faulted and no device page table entry\nwas installed.  The caller then retries the same address, hits -ENOENT\nagain, and can loop forever without making progress.\n\nReturn -EFAULT instead, so the ioctl fails when the mirrored mm is no\nlonger faultable.","publishedAt":"2026-09-17T16:09:25.083Z","updatedAt":"2026-10-19T09:02:55.602Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b2ef9f5a5cb37643ca5def3516c546457074b882","status":"affected","lessThan":"50606ced303782f8715e2d0b98ca374ea498fa29","versionType":"git"},{"version":"b2ef9f5a5cb37643ca5def3516c546457074b882","status":"affected","lessThan":"541a67f21ab807c8dbc0ea88d5a2eb73b2618090","versionType":"git"},{"version":"b2ef9f5a5cb37643ca5def3516c546457074b882","status":"affected","lessThan":"d8e64ffab01e032ae29159d27230ace8cf8bdc80","versionType":"git"},{"version":"b2ef9f5a5cb37643ca5def3516c546457074b882","status":"affected","lessThan":"2636569ea7c19d9a40db4a1e8d0a027bdacf1569","versionType":"git"},{"version":"b2ef9f5a5cb37643ca5def3516c546457074b882","status":"affected","lessThan":"701347e31aa607f3782403151a3125729d685275","versionType":"git"},{"version":"b2ef9f5a5cb37643ca5def3516c546457074b882","status":"affected","lessThan":"af7a6d6ec36a16a583ba2e4e9984c3cf1fe34655","versionType":"git"},{"version":"b2ef9f5a5cb37643ca5def3516c546457074b882","status":"affected","lessThan":"a2074f86fc9653831e4fb7b711bb715db330f182","versionType":"git"},{"version":"b2ef9f5a5cb37643ca5def3516c546457074b882","status":"affected","lessThan":"6a8024511ddf4877435c34fb3d6028aa8e590649","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["lib/test_hmm.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.8","versionType":"semver"},{"version":"5.10.270","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.221","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.188","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.157","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.110","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.52","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.6","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["lib/test_hmm.c"]}],"references":["https://git.kernel.org/stable/c/50606ced303782f8715e2d0b98ca374ea498fa29","https://git.kernel.org/stable/c/541a67f21ab807c8dbc0ea88d5a2eb73b2618090","https://git.kernel.org/stable/c/d8e64ffab01e032ae29159d27230ace8cf8bdc80","https://git.kernel.org/stable/c/2636569ea7c19d9a40db4a1e8d0a027bdacf1569","https://git.kernel.org/stable/c/701347e31aa607f3782403151a3125729d685275","https://git.kernel.org/stable/c/af7a6d6ec36a16a583ba2e4e9984c3cf1fe34655","https://git.kernel.org/stable/c/a2074f86fc9653831e4fb7b711bb715db330f182","https://git.kernel.org/stable/c/6a8024511ddf4877435c34fb3d6028aa8e590649"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:34.582Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/90xxx/CVE-2026-90391.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-90391","state":"PUBLISHED","datePublished":"2026-09-17T16:09:25.083Z","dateUpdated":"2026-10-19T09:02:55.602Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-11T19:38:34.810Z"},"containers":{"cna":{"title":"lib/test_hmm: fail dmirror_fault() when the mirrored mm is gone","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nlib/test_hmm: fail dmirror_fault() when the mirrored mm is gone\n\ndmirror_fault() is called from the dmirror_read() and dmirror_write()\nretry loops after dmirror_do_read() or dmirror_do_write() finds a missing\ndevice page table entry.\n\nIf the mirrored mm has already exited, mmget_not_zero() fails.  The\ncurrent code returns 0 in that case, which tells the caller that faulting\nsucceeded even though no page was faulted and no device page table entry\nwas installed.  The caller then retries the same address, hits -ENOENT\nagain, and can loop forever without making progress.\n\nReturn -EFAULT instead, so the ioctl fails when the mirrored mm is no\nlonger faultable."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b2ef9f5a5cb37643ca5def3516c546457074b882","status":"affected","lessThan":"50606ced303782f8715e2d0b98ca374ea498fa29","versionType":"git"},{"version":"b2ef9f5a5cb37643ca5def3516c546457074b882","status":"affected","lessThan":"541a67f21ab807c8dbc0ea88d5a2eb73b2618090","versionType":"git"},{"version":"b2ef9f5a5cb37643ca5def3516c546457074b882","status":"affected","lessThan":"d8e64ffab01e032ae29159d27230ace8cf8bdc80","versionType":"git"},{"version":"b2ef9f5a5cb37643ca5def3516c546457074b882","status":"affected","lessThan":"2636569ea7c19d9a40db4a1e8d0a027bdacf1569","versionType":"git"},{"version":"b2ef9f5a5cb37643ca5def3516c546457074b882","status":"affected","lessThan":"701347e31aa607f3782403151a3125729d685275","versionType":"git"},{"version":"b2ef9f5a5cb37643ca5def3516c546457074b882","status":"affected","lessThan":"af7a6d6ec36a16a583ba2e4e9984c3cf1fe34655","versionType":"git"},{"version":"b2ef9f5a5cb37643ca5def3516c546457074b882","status":"affected","lessThan":"a2074f86fc9653831e4fb7b711bb715db330f182","versionType":"git"},{"version":"b2ef9f5a5cb37643ca5def3516c546457074b882","status":"affected","lessThan":"6a8024511ddf4877435c34fb3d6028aa8e590649","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["lib/test_hmm.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.8","versionType":"semver"},{"version":"5.10.270","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.221","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.188","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.157","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.110","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.52","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.6","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["lib/test_hmm.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/50606ced303782f8715e2d0b98ca374ea498fa29"},{"url":"https://git.kernel.org/stable/c/541a67f21ab807c8dbc0ea88d5a2eb73b2618090"},{"url":"https://git.kernel.org/stable/c/d8e64ffab01e032ae29159d27230ace8cf8bdc80"},{"url":"https://git.kernel.org/stable/c/2636569ea7c19d9a40db4a1e8d0a027bdacf1569"},{"url":"https://git.kernel.org/stable/c/701347e31aa607f3782403151a3125729d685275"},{"url":"https://git.kernel.org/stable/c/af7a6d6ec36a16a583ba2e4e9984c3cf1fe34655"},{"url":"https://git.kernel.org/stable/c/a2074f86fc9653831e4fb7b711bb715db330f182"},{"url":"https://git.kernel.org/stable/c/6a8024511ddf4877435c34fb3d6028aa8e590649"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T09:02:55.602Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"5.10.270"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"5.15.221"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.1.188"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.6.157"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.12.110"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.18.52"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"7.2.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}