CVE-2024-53112

Source
https://cve.org/CVERecord?id=CVE-2024-53112
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-53112.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-53112
Downstream
Related
Published
2024-12-02T13:44:44.387Z
Modified
2026-03-11T07:45:13.025670344Z
Summary
ocfs2: uncache inode which has failed entering the group
Details

In the Linux kernel, the following vulnerability has been resolved:

ocfs2: uncache inode which has failed entering the group

Syzbot has reported the following BUG:

kernel BUG at fs/ocfs2/uptodate.c:509! ... Call Trace: <TASK> ? __diebody+0x5f/0xb0 ? die+0x9e/0xc0 ? dotrap+0x15a/0x3a0 ? ocfs2setnewbufferuptodate+0x145/0x160 ? doerrortrap+0x1dc/0x2c0 ? ocfs2setnewbufferuptodate+0x145/0x160 ? __pfxdoerrortrap+0x10/0x10 ? handleinvalidop+0x34/0x40 ? ocfs2setnewbufferuptodate+0x145/0x160 ? excinvalidop+0x38/0x50 ? asmexcinvalidop+0x1a/0x20 ? ocfs2setnewbufferuptodate+0x2e/0x160 ? ocfs2setnewbufferuptodate+0x144/0x160 ? ocfs2setnewbufferuptodate+0x145/0x160 ocfs2groupadd+0x39f/0x15a0 ? __pfxocfs2group_add+0x10/0x10 ? __pfxlockacquire+0x10/0x10 ? mnt_getwriteaccess+0x68/0x2b0 ? __pfxlockrelease+0x10/0x10 ? rcureadlockanyheld+0xb7/0x160 ? __pfxrcureadlockanyheld+0x10/0x10 ? smacklog+0x123/0x540 ? mntgetwriteaccess+0x68/0x2b0 ? mntgetwriteaccess+0x68/0x2b0 ? mntgetwriteaccess+0x226/0x2b0 ocfs2ioctl+0x65e/0x7d0 ? __pfxocfs2ioctl+0x10/0x10 ? smackfileioctl+0x29e/0x3a0 ? __pfxsmackfileioctl+0x10/0x10 ? lockdephardirqsonprepare+0x43d/0x780 ? __pfxlockdephardirqsonprepare+0x10/0x10 ? __pfxocfs2ioctl+0x10/0x10 __sesysioctl+0xfb/0x170 dosyscall64+0xf3/0x230 entrySYSCALL64afterhwframe+0x77/0x7f ... </TASK>

When 'ioctl(OCFS2IOCGROUPADD, ...)' has failed for the particular inode in 'ocfs2verifygroupandinput()', corresponding buffer head remains cached and subsequent call to the same 'ioctl()' for the same inode issues the BUG() in 'ocfs2setnewbufferuptodate()' (trying to cache the same buffer head of that inode). Fix this by uncaching the buffer head with 'ocfs2removefromcache()' on error path in 'ocfs2groupadd()'.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53112.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
7909f2bf835376a20d6dbf853eb459a27566eba2
Fixed
ac0cfe8ac35cf1be54131b90d114087b558777ca
Fixed
5ae8cc0b0c027e9cab22596049bc4dd1cbc37ee4
Fixed
28d4ed71ae0b4baedca3e85ee6d8f227ec75ebf6
Fixed
0e04746db2ec4aec04cef5763b9d9aa32829ae2f
Fixed
620d22598110b0d0cb97a3fcca65fc473ea86e73
Fixed
843dfc804af4b338ead42331dd58081b428ecdf8
Fixed
b751c50e19d66cfb7360c0b55cf17b0722252d12
Fixed
737f34137844d6572ab7d473c998c7f977ff30eb

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-53112.json"