{"id":"CVE-2021-47254","aliases":["CVE-2021-47254"],"related":[],"kind":"vulnerability","state":"published","title":"gfs2: Fix use-after-free in gfs2_glock_shrink_scan","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ngfs2: Fix use-after-free in gfs2_glock_shrink_scan\n\nThe GLF_LRU flag is checked under lru_lock in gfs2_glock_remove_from_lru() to\nremove the glock from the lru list in __gfs2_glock_put().\n\nOn the shrink scan path, the same flag is cleared under lru_lock but because\nof cond_resched_lock(&lru_lock) in gfs2_dispose_glock_lru(), progress on the\nput side can be made without deleting the glock from the lru list.\n\nKeep GLF_LRU across the race window opened by cond_resched_lock(&lru_lock) to\nensure correct behavior on both sides - clear GLF_LRU after list_del under\nlru_lock.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ngfs2: Fix use-after-free in gfs2_glock_shrink_scan\n\nThe GLF_LRU flag is checked under lru_lock in gfs2_glock_remove_from_lru() to\nremove the glock from the lru list in __gfs2_glock_put().\n\nOn the shrink scan path, the same flag is cleared under lru_lock but because\nof cond_resched_lock(&lru_lock) in gfs2_dispose_glock_lru(), progress on the\nput side can be made without deleting the glock from the lru list.\n\nKeep GLF_LRU across the race window opened by cond_resched_lock(&lru_lock) to\nensure correct behavior on both sides - clear GLF_LRU after list_del under\nlru_lock.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: gfs2: corrige use-after-free en gfs2_glock_shrink_scan. El indicador GLF_LRU se marca en lru_lock en gfs2_glock_remove_from_lru() para eliminar el glock de la lista lru en __gfs2_glock_put(). En la ruta de escaneo de reducción, la misma bandera se borra en lru_lock pero debido a cond_resched_lock(&amp;lru_lock) en gfs2_dispose_glock_lru(), se puede avanzar en el lado de venta sin eliminar la glock de la lista de lru. Mantenga GLF_LRU en la ventana de ejecución abierta por cond_resched_lock(&amp;lru_lock) para garantizar un comportamiento correcto en ambos lados; borre GLF_LRU después de list_del en lru_lock.","source":"nvd"}],"published":"2024-05-21T14:19:49.475Z","modified":"2026-08-05T08:46:59.624Z","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":"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":"6948c6bc17d666663a84c124b3176039e64a58f4","fixed":"38ce329534500bf4ae71f81df6a37a406cf187b4","status":"affected"},{"type":"git","introduced":"b568ed385a18c0ddbe41862b69088b636550a04f","fixed":"92869945cc5b78ee8a1ef90336fe070893e3458a","status":"affected"},{"type":"git","introduced":"762bb3528249604bc680a9df635e8995740176de","fixed":"0364742decb0f02bc183404868b82896f7992595","status":"affected"},{"type":"git","introduced":"bac8520892812dada1ac93f27d96317470d24b1f","fixed":"094bf5670e762afa243d2c41a5c4ab71c7447bf4","status":"affected"},{"type":"git","introduced":"7881ef3f33bb80f459ea6020d1e021fc524a6348","fixed":"86fd5b27db743a0ce0cc245e3a34813b2aa6ec1d","status":"affected"},{"type":"git","introduced":"7881ef3f33bb80f459ea6020d1e021fc524a6348","fixed":"a61156314b66456ab6a291ed5deba1ebd002ab3c","status":"affected"},{"type":"git","introduced":"7881ef3f33bb80f459ea6020d1e021fc524a6348","fixed":"e87ef30fe73e7e10d2c85bdcc778dcec24dca553","status":"affected"},{"type":"git","introduced":"7881ef3f33bb80f459ea6020d1e021fc524a6348","fixed":"1ab19c5de4c537ec0d9b21020395a5b5a6c059b2","status":"affected"},{"type":"git","version":"1e7a416fb765c9072479dc424780c0937ba99270","status":"affected"},{"type":"git","version":"dcbdbe13796ffa561510d2686a6318564e728bbd","status":"affected"},{"type":"semver","introduced":"4.4.181","fixed":"4.4.274","status":"affected"},{"type":"semver","introduced":"4.9.180","fixed":"4.9.274","status":"affected"},{"type":"semver","introduced":"4.14.123","fixed":"4.14.238","status":"affected"},{"type":"semver","introduced":"4.19.47","fixed":"4.19.196","status":"affected"},{"type":"semver","introduced":"5.0.20","fixed":"5.1","status":"affected"},{"type":"semver","introduced":"5.1.6","fixed":"5.2","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.2","status":"unaffected"},{"type":"semver","introduced":"4.4.274","lastAffected":"4.4.*","status":"unaffected"},{"type":"semver","introduced":"4.9.274","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.238","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.196","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.127","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.45","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.12.12","lastAffected":"5.12.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.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.4.181","fixed":"4.4.274"},{"status":"affected","introduced":"4.9.180","fixed":"4.9.274"},{"status":"affected","introduced":"4.14.123","fixed":"4.14.238"},{"status":"affected","introduced":"4.19.47","fixed":"4.19.196"},{"status":"affected","introduced":"5.0.20","fixed":"5.1"},{"status":"affected","introduced":"5.1.6","fixed":"5.4.127"},{"status":"affected","introduced":"5.5","fixed":"5.10.45"},{"status":"affected","introduced":"5.11","fixed":"5.12.12"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/38ce329534500bf4ae71f81df6a37a406cf187b4","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/92869945cc5b78ee8a1ef90336fe070893e3458a","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0364742decb0f02bc183404868b82896f7992595","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/094bf5670e762afa243d2c41a5c4ab71c7447bf4","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/86fd5b27db743a0ce0cc245e3a34813b2aa6ec1d","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a61156314b66456ab6a291ed5deba1ebd002ab3c","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e87ef30fe73e7e10d2c85bdcc778dcec24dca553","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1ab19c5de4c537ec0d9b21020395a5b5a6c059b2","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-06-17T17:37:55.520Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-47254","url":"https://www.cve.org/CVERecord?id=CVE-2021-47254","licence":"CVE Terms of Use","modified":"2026-08-05T08:46:59.624Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-47254","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47254","licence":"Public domain","modified":"2026-08-04T10:16:55.263Z"}],"updatedAt":"2026-11-25T22:58:08.759Z","epss":{"score":0.00243,"percentile":0.16592,"date":"2026-12-01T12:00:22.000Z"}}