In the Linux kernel, the following vulnerability has been resolved: binfmtmisc: restore write access before closing files opened by openexec() bmregisterwrite() opens an executable file using openexec(), which internally calls doopenexecat() and denies write access on the file to avoid modification while it is being executed. However, when an error occurs, bmregisterwrite() closes the file using filpclose() directly. This does not restore the write permission, which may cause subsequent write operations on the same file to fail. Fix this by calling exefileallowwriteaccess() before filp_close() to restore the write permission properly.