{"id":"CVE-2022-49076","aliases":["CVE-2022-49076"],"related":[],"kind":"vulnerability","state":"published","title":"RDMA/hfi1: Fix use-after-free bug for mm struct","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/hfi1: Fix use-after-free bug for mm struct\n\nUnder certain conditions, such as MPI_Abort, the hfi1 cleanup code may\nrepresent the last reference held on the task mm.\nhfi1_mmu_rb_unregister() then drops the last reference and the mm is freed\nbefore the final use in hfi1_release_user_pages().  A new task may\nallocate the mm structure while it is still being used, resulting in\nproblems. One manifestation is corruption of the mmap_sem counter leading\nto a hang in down_write().  Another is corruption of an mm struct that is\nin use by another task.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/hfi1: Fix use-after-free bug for mm struct\n\nUnder certain conditions, such as MPI_Abort, the hfi1 cleanup code may\nrepresent the last reference held on the task mm.\nhfi1_mmu_rb_unregister() then drops the last reference and the mm is freed\nbefore the final use in hfi1_release_user_pages().  A new task may\nallocate the mm structure while it is still being used, resulting in\nproblems. One manifestation is corruption of the mmap_sem counter leading\nto a hang in down_write().  Another is corruption of an mm struct that is\nin use by another task.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: RDMA/hfi1: Se corrige el error de use-after-free para la estructura mm En determinadas condiciones, como MPI_Abort, el código de limpieza hfi1 puede representar la última referencia retenida en la tarea mm. Luego, hfi1_mmu_rb_unregister() elimina la última referencia y la mm se libera antes del uso final en hfi1_release_user_pages(). Una nueva tarea puede asignar la estructura mm mientras aún se está utilizando, lo que genera problemas. Una manifestación es la corrupción del contador mmap_sem que provoca un bloqueo en down_write(). Otra es la corrupción de una estructura mm que está en uso por otra tarea.","source":"nvd"}],"published":"2025-02-26T01:54:39.251Z","modified":"2026-08-05T08:53:45.482Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"3d2a9d642512c21a12d19b9250e7a835dcb41a79","fixed":"5f54364ff6cfcd14cddf5441c4a490bb28dd69f7","status":"affected"},{"type":"git","introduced":"3d2a9d642512c21a12d19b9250e7a835dcb41a79","fixed":"9ca11bd8222a612de0d2f54d050bfcf61ae2883f","status":"affected"},{"type":"git","introduced":"3d2a9d642512c21a12d19b9250e7a835dcb41a79","fixed":"0b7186d657ee55e2cdefae498f07d5c1961e8023","status":"affected"},{"type":"git","introduced":"3d2a9d642512c21a12d19b9250e7a835dcb41a79","fixed":"5a9a1b24ddb510715f8f621263938186579a965c","status":"affected"},{"type":"git","introduced":"3d2a9d642512c21a12d19b9250e7a835dcb41a79","fixed":"2bbac98d0930e8161b1957dc0ec99de39ade1b3c","status":"affected"},{"type":"git","version":"5732f83596f8a573f2cde814cc76a54e1a8995c7","status":"affected"},{"type":"semver","introduced":"5.9.12","fixed":"5.10","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.10","status":"unaffected"},{"type":"semver","introduced":"5.10.111","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.34","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.16.20","lastAffected":"5.16.*","status":"unaffected"},{"type":"semver","introduced":"5.17.3","lastAffected":"5.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.9.12","fixed":"5.10.111"},{"status":"affected","introduced":"5.11","fixed":"5.15.34"},{"status":"affected","introduced":"5.16","fixed":"5.16.20"},{"status":"affected","introduced":"5.17","fixed":"5.17.3"},{"status":"affected","version":"5.18"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/5f54364ff6cfcd14cddf5441c4a490bb28dd69f7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9ca11bd8222a612de0d2f54d050bfcf61ae2883f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0b7186d657ee55e2cdefae498f07d5c1961e8023","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5a9a1b24ddb510715f8f621263938186579a965c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2bbac98d0930e8161b1957dc0ec99de39ade1b3c","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-02-27T18:17:39.018Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49076","url":"https://www.cve.org/CVERecord?id=CVE-2022-49076","licence":"CVE Terms of Use","modified":"2026-08-05T08:53:45.482Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49076","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49076","licence":"Public domain","modified":"2026-06-17T05:17:00.823Z"}],"updatedAt":"2026-11-25T22:58:20.150Z","epss":{"score":0.00259,"percentile":0.18815,"date":"2026-12-01T12:00:22.000Z"}}