lib/test_hmm: fail dmirror_fault() when the mirrored mm is gone (Linux Linux)

CVE-2026-90391
Not available

At a glance

Source
NVD
EPSS
EPSS 0.21 % · percentile 11 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Received

Description

In the Linux kernel, the following vulnerability has been resolved: lib/test_hmm: fail dmirror_fault() when the mirrored mm is gone dmirror_fault() is called from the dmirror_read() and dmirror_write() retry loops after dmirror_do_read() or dmirror_do_write() finds a missing device page table entry. If the mirrored mm has already exited, mmget_not_zero() fails. The current code returns 0 in that case, which tells the caller that faulting succeeded even though no page was faulted and no device page table entry was installed. The caller then retries the same address, hits -ENOENT again, and can loop forever without making progress. Return -EFAULT instead, so the ioctl fails when the mirrored mm is no longer faultable.

References

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected b2ef9f5a5cb37643ca5def3516c546457074b882 < 50606ced303782f8715e2d0b98ca374ea498fa29 ; affected b2ef9f5a5cb37643ca5def3516c546457074b882 < 541a67f21ab807c8dbc0ea88d5a2eb73b2618090 ; affected b2ef9f5a5cb37643ca5def3516c546457074b882 < d8e64ffab01e032ae29159d27230ace8cf8bdc80 ; affected b2ef9f5a5cb37643ca5def3516c546457074b882 < 2636569ea7c19d9a40db4a1e8d0a027bdacf1569 ; affected b2ef9f5a5cb37643ca5def3516c546457074b882 < 701347e31aa607f3782403151a3125729d685275 ; affected b2ef9f5a5cb37643ca5def3516c546457074b882 < af7a6d6ec36a16a583ba2e4e9984c3cf1fe34655
Linux · Linuxaffected 5.8 ; unaffected 0 < 5.8 ; unaffected 5.10.270 ≤ 5.10.* ; unaffected 5.15.221 ≤ 5.15.* ; unaffected 6.1.188 ≤ 6.1.* ; unaffected 6.6.157 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD