{"id":"CVE-2024-57892","published":"2025-01-15T13:05:44Z","modified":"2026-05-11T20:59:55Z","title":"ocfs2: fix slab-use-after-free due to dangling pointer dqi_priv","vendor":"Linux","product":"Linux","tier":"tail","description":{"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]","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.0022,"percentile":0.1285,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://git.kernel.org/stable/c/58f9e20e2a7602e1dd649a1ec4790077c251cb6c","tags":[]},{"url":"https://git.kernel.org/stable/c/8ff6f635a08c30559ded0c110c7ce03ba7747d11","tags":[]},{"url":"https://git.kernel.org/stable/c/f44e6d70c100614c211703f065cad448050e4a0e","tags":[]},{"url":"https://git.kernel.org/stable/c/2d431192486367eee03cc28d0b53b97dafcb8e63","tags":[]},{"url":"https://git.kernel.org/stable/c/2e3d203b1adede46bbba049e497765d67865be18","tags":[]},{"url":"https://git.kernel.org/stable/c/ba950a02d8d23811aa1120affd3adedcfac6153d","tags":[]},{"url":"https://git.kernel.org/stable/c/5f3fd772d152229d94602bca243fbb658068a597","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":[]}],"priority":{"score":8.0,"factors":[{"name":"EPSS percentile","points":2.57},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 8f9e8f5fcc059a3cba87ce837c88316797ef3645, < 58f9e20e2a7602e1dd649a1ec4790077c251cb6c",">= 8f9e8f5fcc059a3cba87ce837c88316797ef3645, < 8ff6f635a08c30559ded0c110c7ce03ba7747d11",">= 8f9e8f5fcc059a3cba87ce837c88316797ef3645, < f44e6d70c100614c211703f065cad448050e4a0e",">= 8f9e8f5fcc059a3cba87ce837c88316797ef3645, < 2d431192486367eee03cc28d0b53b97dafcb8e63",">= 8f9e8f5fcc059a3cba87ce837c88316797ef3645, < 2e3d203b1adede46bbba049e497765d67865be18",">= 8f9e8f5fcc059a3cba87ce837c88316797ef3645, < ba950a02d8d23811aa1120affd3adedcfac6153d",">= 8f9e8f5fcc059a3cba87ce837c88316797ef3645, < 5f3fd772d152229d94602bca243fbb658068a597"]},{"vendor":"Linux","product":"Linux","versions":["4.6"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-02-13T13:55:16.692610Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-53795","exploited":false,"provenance":"source"}}