CVE-2023-53224
ext4: Fix function prototype mismatch for ext4_feat_ktype
Check your servers for CVE-2023-53224
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-2023-53224 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.
Description
In the Linux kernel, the following vulnerability has been resolved:
ext4: Fix function prototype mismatch for ext4_feat_ktype
With clang's kernel control flow integrity (kCFI, CONFIG_CFI_CLANG), indirect call targets are validated against the expected function pointer prototype to make sure the call target is valid to help mitigate ROP attacks. If they are not identical, there is a failure at run time, which manifests as either a kernel panic or thread getting killed.
ext4_feat_ktype was setting the "release" handler to "kfree", which doesn't have a matching function prototype. Add a simple wrapper with the correct prototype.
This was found as a result of Clang's new -Wcast-function-type-strict flag, which is more sensitive than the simpler -Wcast-function-type, which only checks for type width mismatches.
Note that this code is only reached when ext4 is a loadable module and it is being unloaded:
CFI failure at kobject_put+0xbb/0x1b0 (target: kfree+0x0/0x180; expected type: 0x7c4aa698) ... RIP: 0010:kobject_put+0xbb/0x1b0 ... Call Trace: <TASK> ext4_exit_sysfs+0x14/0x60 [ext4] cleanup_module+0x67/0xedb [ext4]
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.17%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.16% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 14 Jan 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-401 Missing Release of Memory after Effective Lifetime
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from b99fee58a20ab8e0557cce87b6f187e325993142, before 2b69cdd9f9a7f596e3dd31f05f9852940d177924 affected from b99fee58a20ab8e0557cce87b6f187e325993142, before 99e3fd21f8fc975c95e8cf76fbf6a3d2656f8f71 affected from b99fee58a20ab8e0557cce87b6f187e325993142, before 1ba10d3640e9783dad811fe4e24d55465c37c64d affected from b99fee58a20ab8e0557cce87b6f187e325993142, before c98077f7598a562f51051eec043be0cb3e1b1b5e affected from b99fee58a20ab8e0557cce87b6f187e325993142, before 0a1394e07c5d6bf1bfc25db8589ff1b1bfb6f46a affected from b99fee58a20ab8e0557cce87b6f187e325993142, before 94d8de83286fb1827340eba35b61c308f6b46ead affected from b99fee58a20ab8e0557cce87b6f187e325993142, before 118901ad1f25d2334255b3d50512fa20591531cd
Other versions: unaffected
|
| Linux |
affected 4.16 unaffected before 4.16 unaffected from 4.19.274 up to and including 4.19.* unaffected from 5.4.233 up to and including 5.4.* unaffected from 5.10.170 up to and including 5.10.* unaffected from 5.15.96 up to and including 5.15.* unaffected from 6.1.14 up to and including 6.1.* unaffected from 6.2.1 up to and including 6.2.* unaffected 6.3 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-2023-53224 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-53224
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-2023-53224
trivy image --scanners vuln IMAGE | grep CVE-2023-53224
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
- https://git.kernel.org/stable/c/2b69cdd9f9a7f596e3dd31f05f9852940d177924 git.kernel.org
- https://git.kernel.org/stable/c/99e3fd21f8fc975c95e8cf76fbf6a3d2656f8f71 git.kernel.org
- https://git.kernel.org/stable/c/1ba10d3640e9783dad811fe4e24d55465c37c64d git.kernel.org
- https://git.kernel.org/stable/c/c98077f7598a562f51051eec043be0cb3e1b1b5e git.kernel.org
- https://git.kernel.org/stable/c/0a1394e07c5d6bf1bfc25db8589ff1b1bfb6f46a git.kernel.org
- https://git.kernel.org/stable/c/94d8de83286fb1827340eba35b61c308f6b46ead git.kernel.org
- https://git.kernel.org/stable/c/118901ad1f25d2334255b3d50512fa20591531cd git.kernel.org
Source: the record CVE-2023-53224 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse