# CVE-2023-53224: ext4: Fix function prototype mismatch for ext4_feat_ktype

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2025-09-15T14:21:53.061Z
- Modified: 2026-06-17T06:44:33.340Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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]

(As written by CVE List.)

## Affected

- Linux Linux: from b99fee58a20ab8e0557cce87b6f187e325993142 before 2b69cdd9f9a7f596e3dd31f05f9852940d177924; from b99fee58a20ab8e0557cce87b6f187e325993142 before 99e3fd21f8fc975c95e8cf76fbf6a3d2656f8f71; from b99fee58a20ab8e0557cce87b6f187e325993142 before 1ba10d3640e9783dad811fe4e24d55465c37c64d; from b99fee58a20ab8e0557cce87b6f187e325993142 before c98077f7598a562f51051eec043be0cb3e1b1b5e; from b99fee58a20ab8e0557cce87b6f187e325993142 before 0a1394e07c5d6bf1bfc25db8589ff1b1bfb6f46a; from b99fee58a20ab8e0557cce87b6f187e325993142 before 94d8de83286fb1827340eba35b61c308f6b46ead; from b99fee58a20ab8e0557cce87b6f187e325993142 before 118901ad1f25d2334255b3d50512fa20591531cd; 4.16 (not affected: before 4.16; from 4.19.274 up to 4.19.*; from 5.4.233 up to 5.4.*; from 5.10.170 up to 5.10.*; from 5.15.96 up to 5.15.*; from 6.1.14 up to 6.1.*; from 6.2.1 up to 6.2.*; from 6.3 up to *)
- linux linux_kernel: from 4.16 before 4.19.274; from 4.20 before 5.4.233; from 5.5 before 5.10.170; from 5.11 before 5.15.96; from 5.16 before 6.1.14; from 6.2 before 6.2.1

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/2b69cdd9f9a7f596e3dd31f05f9852940d177924> (patch)
- <https://git.kernel.org/stable/c/99e3fd21f8fc975c95e8cf76fbf6a3d2656f8f71> (patch)
- <https://git.kernel.org/stable/c/1ba10d3640e9783dad811fe4e24d55465c37c64d> (patch)
- <https://git.kernel.org/stable/c/c98077f7598a562f51051eec043be0cb3e1b1b5e> (patch)
- <https://git.kernel.org/stable/c/0a1394e07c5d6bf1bfc25db8589ff1b1bfb6f46a> (patch)
- <https://git.kernel.org/stable/c/94d8de83286fb1827340eba35b61c308f6b46ead> (patch)
- <https://git.kernel.org/stable/c/118901ad1f25d2334255b3d50512fa20591531cd> (patch)

## Sources

- CVE List: [CVE-2023-53224](https://www.cve.org/CVERecord?id=CVE-2023-53224), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-53224](https://nvd.nist.gov/vuln/detail/CVE-2023-53224), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-53224 · Whole record: https://cve.day/CVE-2023-53224.json · Rebuilt by cve.day 2026-11-25T22:58:34.783Z
