CVE-2024-53112

ocfs2: uncache inode which has failed entering the group

No CVSS score yet EPSS 0.26%

Published 2 Dec 2024 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2024-53112

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-53112 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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> ? __die_body+0x5f/0xb0 ? die+0x9e/0xc0 ? do_trap+0x15a/0x3a0 ? ocfs2_set_new_buffer_uptodate+0x145/0x160 ? do_error_trap+0x1dc/0x2c0 ? ocfs2_set_new_buffer_uptodate+0x145/0x160 ? __pfx_do_error_trap+0x10/0x10 ? handle_invalid_op+0x34/0x40 ? ocfs2_set_new_buffer_uptodate+0x145/0x160 ? exc_invalid_op+0x38/0x50 ? asm_exc_invalid_op+0x1a/0x20 ? ocfs2_set_new_buffer_uptodate+0x2e/0x160 ? ocfs2_set_new_buffer_uptodate+0x144/0x160 ? ocfs2_set_new_buffer_uptodate+0x145/0x160 ocfs2_group_add+0x39f/0x15a0 ? __pfx_ocfs2_group_add+0x10/0x10 ? __pfx_lock_acquire+0x10/0x10 ? mnt_get_write_access+0x68/0x2b0 ? __pfx_lock_release+0x10/0x10 ? rcu_read_lock_any_held+0xb7/0x160 ? __pfx_rcu_read_lock_any_held+0x10/0x10 ? smack_log+0x123/0x540 ? mnt_get_write_access+0x68/0x2b0 ? mnt_get_write_access+0x68/0x2b0 ? mnt_get_write_access+0x226/0x2b0 ocfs2_ioctl+0x65e/0x7d0 ? __pfx_ocfs2_ioctl+0x10/0x10 ? smack_file_ioctl+0x29e/0x3a0 ? __pfx_smack_file_ioctl+0x10/0x10 ? lockdep_hardirqs_on_prepare+0x43d/0x780 ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 ? __pfx_ocfs2_ioctl+0x10/0x10 __se_sys_ioctl+0xfb/0x170 do_syscall_64+0xf3/0x230 entry_SYSCALL_64_after_hwframe+0x77/0x7f ... </TASK>

When 'ioctl(OCFS2_IOC_GROUP_ADD, ...)' has failed for the particular inode in 'ocfs2_verify_group_and_input()', corresponding buffer head remains cached and subsequent call to the same 'ioctl()' for the same inode issues the BUG() in 'ocfs2_set_new_buffer_uptodate()' (trying to cache the same buffer head of that inode). Fix this by uncaching the buffer head with 'ocfs2_remove_from_cache()' on error path in 'ocfs2_group_add()'.

Exploitation

EPSS 0.26%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 18.4% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 7909f2bf835376a20d6dbf853eb459a27566eba2, before ac0cfe8ac35cf1be54131b90d114087b558777ca
affected from 7909f2bf835376a20d6dbf853eb459a27566eba2, before 5ae8cc0b0c027e9cab22596049bc4dd1cbc37ee4
affected from 7909f2bf835376a20d6dbf853eb459a27566eba2, before 28d4ed71ae0b4baedca3e85ee6d8f227ec75ebf6
affected from 7909f2bf835376a20d6dbf853eb459a27566eba2, before 0e04746db2ec4aec04cef5763b9d9aa32829ae2f
affected from 7909f2bf835376a20d6dbf853eb459a27566eba2, before 620d22598110b0d0cb97a3fcca65fc473ea86e73
affected from 7909f2bf835376a20d6dbf853eb459a27566eba2, before 843dfc804af4b338ead42331dd58081b428ecdf8
affected from 7909f2bf835376a20d6dbf853eb459a27566eba2, before b751c50e19d66cfb7360c0b55cf17b0722252d12
affected from 7909f2bf835376a20d6dbf853eb459a27566eba2, before 737f34137844d6572ab7d473c998c7f977ff30eb
Other versions: unaffected
Linux
affected 2.6.25
unaffected before 2.6.25
unaffected from 4.19.325 up to and including 4.19.*
unaffected from 5.4.287 up to and including 5.4.*
unaffected from 5.10.231 up to and including 5.10.*
unaffected from 5.15.174 up to and including 5.15.*
unaffected from 6.1.119 up to and including 6.1.*
unaffected from 6.6.63 up to and including 6.6.*
unaffected from 6.11.10 up to and including 6.11.*
unaffected 6.12 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-53112 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-53112

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-53112
trivy image --scanners vuln IMAGE | grep CVE-2024-53112

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-53112 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.