CVE-2026-99550: ocfs2: pin owning modules for open debugfs files
In the Linux kernel, the following vulnerability has been resolved:
ocfs2: pin owning modules for open debugfs files
The OCFS2 debugfs file operation tables do not set owner. The full debugfs proxy obtains realfops with fopsget() at open and keeps it until final release. Without an owner, this does not acquire a reference to the module containing the table and its callbacks. Removing the debugfs entries does not drain retained open files.
An open connectednodes file can therefore outlive ocfs2nodemanager and make fullproxyrelease() read realfops->release from freed module memory. Heming also reproduced the issue with fsstate and asked for the other OCFS2 debugfs operation tables to be checked.
Set owner to THISMODULE in all eleven explicit debugfs operation tables: five in ocfs2nodemanager, four in ocfs2dlm, and two in ocfs2. The existing debugfs get/put pair then holds the appropriate module until final release. Leave the open, read and release callbacks unchanged. The blockcheck table already sets owner through DEFINEDEBUGFSATTRIBUTE(), so it needs no change.
The original controlled test used an unloadable OCFS2 module and case-local probe filters without changing the candidate open, unload or release logic. Closing a retained connectednodes file after normal unload produced:
BUG: unable to handle page fault for address: fffffbfff804cfef Oops: Oops: 0000 [#1] SMP KASAN NOPTI RIP: 0010:fullproxyrelease+0xbf/0x190 Call Trace: <TASK> fput+0x39a/0xa60 fputclosesync+0xff/0x200 x64sysclose+0x8c/0xf0 dosyscall64+0x114/0x620 entrySYSCALL64afterhwframe+0x77/0x7f </TASK> Modules linked in: [last unloaded: ocfs2nodemanager]
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.61 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.2 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.3-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1Fixed in 7.3.4-1Fixed in 7.3.5-1 - Configuration
Set owner to THIS_MODULE in all eleven explicit debugfs operation tables: five in ocfs2_nodemanager, four in ocfs2_dlm, and two in ocfs2.
OCFS2 debugfs operation tables owner = THIS_MODULE