In the Linux kernel, the following vulnerability has been resolved: f2fs: quota: fix stale lock holder on remount failure F2FS remount can fail while duplicating a journalled quota file name. f2fs_remount() - sbi->umount_lock_holder = current - kstrdup(F2FS_OPTION(sbi).s_qf_names[i]) : fails - free previously duplicated names - return -ENOMEM The direct return leaves umount_lock_holder pointing at the failed remount context. A later checkpoint may then wrongly treat another context as the s_umount lock holder. Add a restore_holder cleanup path and use it before returning -ENOMEM.
https://git.kernel.org/stable/c/f69b6cbb7f9bdc681d5b11bcd8c5ba133f8ab3d6
https://git.kernel.org/stable/c/c602d781630a5c55ddc4d414108aa7ff24e4de53
https://git.kernel.org/stable/c/3f140a60c92a5e2e9885adac70cd3686ba4ee19a
https://git.kernel.org/stable/c/36495467cf1f1ccf541a3d57a811b366faa7c273