{"id":"CVE-2024-57892","aliases":["CVE-2024-57892"],"related":[],"kind":"vulnerability","state":"published","title":"ocfs2: fix slab-use-after-free due to dangling pointer dqi_priv","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: fix slab-use-after-free due to dangling pointer dqi_priv\n\nWhen mounting ocfs2 and then remounting it as read-only, a\nslab-use-after-free occurs after the user uses a syscall to\nquota_getnextquota.  Specifically, sb_dqinfo(sb, type)->dqi_priv is the\ndangling pointer.\n\nDuring the remounting process, the pointer dqi_priv is freed but is never\nset as null leaving it to be accessed.  Additionally, the read-only option\nfor remounting sets the DQUOT_SUSPENDED flag instead of setting the\nDQUOT_USAGE_ENABLED flags.  Moreover, later in the process of getting the\nnext quota, the function ocfs2_get_next_id is called and only checks the\nquota usage flags and not the quota suspended flags.\n\nTo fix this, I set dqi_priv to null when it is freed after remounting with\nread-only and put a check for DQUOT_SUSPENDED in ocfs2_get_next_id.\n\n[akpm@linux-foundation.org: coding-style cleanups]","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: fix slab-use-after-free due to dangling pointer dqi_priv\n\nWhen mounting ocfs2 and then remounting it as read-only, a\nslab-use-after-free occurs after the user uses a syscall to\nquota_getnextquota.  Specifically, sb_dqinfo(sb, type)->dqi_priv is the\ndangling pointer.\n\nDuring the remounting process, the pointer dqi_priv is freed but is never\nset as null leaving it to be accessed.  Additionally, the read-only option\nfor remounting sets the DQUOT_SUSPENDED flag instead of setting the\nDQUOT_USAGE_ENABLED flags.  Moreover, later in the process of getting the\nnext quota, the function ocfs2_get_next_id is called and only checks the\nquota usage flags and not the quota suspended flags.\n\nTo fix this, I set dqi_priv to null when it is freed after remounting with\nread-only and put a check for DQUOT_SUSPENDED in ocfs2_get_next_id.\n\n[akpm@linux-foundation.org: coding-style cleanups]","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ocfs2: se corrige slab-use-after-free debido al puntero colgante dqi_priv Al montar ocfs2 y luego volver a montarlo como de solo lectura, se produce un slab-use-after-free después de que el usuario usa una llamada al sistema a quota_getnextquota. Específicamente, sb_dqinfo(sb, type)-&gt;dqi_priv es el puntero colgante. Durante el proceso de remontaje, el puntero dqi_priv se libera pero nunca se establece como nulo, dejándolo para que se pueda acceder a él. Además, la opción de solo lectura para remontaje establece el indicador DQUOT_SUSPENDED en lugar de establecer los indicadores DQUOT_USAGE_ENABLED. Además, más adelante en el proceso de obtención de la siguiente cuota, se llama a la función ocfs2_get_next_id y solo verifica los indicadores de uso de cuota y no los indicadores de cuota suspendida. Para solucionar esto, establezco dqi_priv en nulo cuando se libera después de volver a montar con solo lectura y pongo una marca de verificación para DQUOT_SUSPENDED en ocfs2_get_next_id. [akpm@linux-foundation.org: limpiezas de estilo de codificación]","source":"nvd"}],"published":"2025-01-15T13:05:44.635Z","modified":"2026-06-17T08:14:09.720Z","severity":{"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"},"severities":[{"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"},{"scorer":"NVD","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":"8f9e8f5fcc059a3cba87ce837c88316797ef3645","fixed":"58f9e20e2a7602e1dd649a1ec4790077c251cb6c","status":"affected"},{"type":"git","introduced":"8f9e8f5fcc059a3cba87ce837c88316797ef3645","fixed":"8ff6f635a08c30559ded0c110c7ce03ba7747d11","status":"affected"},{"type":"git","introduced":"8f9e8f5fcc059a3cba87ce837c88316797ef3645","fixed":"f44e6d70c100614c211703f065cad448050e4a0e","status":"affected"},{"type":"git","introduced":"8f9e8f5fcc059a3cba87ce837c88316797ef3645","fixed":"2d431192486367eee03cc28d0b53b97dafcb8e63","status":"affected"},{"type":"git","introduced":"8f9e8f5fcc059a3cba87ce837c88316797ef3645","fixed":"2e3d203b1adede46bbba049e497765d67865be18","status":"affected"},{"type":"git","introduced":"8f9e8f5fcc059a3cba87ce837c88316797ef3645","fixed":"ba950a02d8d23811aa1120affd3adedcfac6153d","status":"affected"},{"type":"git","introduced":"8f9e8f5fcc059a3cba87ce837c88316797ef3645","fixed":"5f3fd772d152229d94602bca243fbb658068a597","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.6","status":"unaffected"},{"type":"semver","introduced":"5.4.290","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.234","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.177","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.125","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.70","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.9","lastAffected":"6.12.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.13","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":"4.6","fixed":"6.1.125"},{"status":"affected","introduced":"6.2","fixed":"6.6.70"},{"status":"affected","introduced":"6.7","fixed":"6.12.9"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/58f9e20e2a7602e1dd649a1ec4790077c251cb6c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8ff6f635a08c30559ded0c110c7ce03ba7747d11","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f44e6d70c100614c211703f065cad448050e4a0e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2d431192486367eee03cc28d0b53b97dafcb8e63","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2e3d203b1adede46bbba049e497765d67865be18","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ba950a02d8d23811aa1120affd3adedcfac6153d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5f3fd772d152229d94602bca243fbb658068a597","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-02-13T13:55:16.692Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-57892","url":"https://www.cve.org/CVERecord?id=CVE-2024-57892","licence":"CVE Terms of Use","modified":"2026-05-11T20:59:55.049Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-57892","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-57892","licence":"Public domain","modified":"2026-06-17T08:14:09.720Z"}],"updatedAt":"2026-11-25T22:58:51.060Z","epss":{"score":0.00329,"percentile":0.18544,"date":"2026-11-30T12:00:22.000Z"}}