CVE-2026-98543: bpf: fs/xattr: don't assume the inode is locked in path_unlink/path_rmdir
In the Linux kernel, the following vulnerability has been resolved:
bpf: fs/xattr: don't assume the inode is locked in pathunlink/pathrmdir
bpflsmhasdinodelocked() makes the verifier rewrite bpf[set|remove]dentryxattr() to the locked variants, which assume that the caller already holds the inode's irwsem. The pathunlink and pathrmdir hooks are listed, but securitypathunlink() and securitypathrmdir() run before vfsunlink()/vfsrmdir() take the victim inode's irwsem, so a sleepable BPF LSM program attached to either hook mutates the victim's xattrs without the lock held.
Drop the two path hooks from dinodelockedhooks so that the verifier keeps the locking bpf[set|remove]dentryxattr() variants, which take the lock themselves.