{"id":"CVE-2023-53224","summary":"ext4: Fix function prototype mismatch for ext4_feat_ktype","details":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: Fix function prototype mismatch for ext4_feat_ktype\n\nWith clang's kernel control flow integrity (kCFI, CONFIG_CFI_CLANG),\nindirect call targets are validated against the expected function\npointer prototype to make sure the call target is valid to help mitigate\nROP attacks. If they are not identical, there is a failure at run time,\nwhich manifests as either a kernel panic or thread getting killed.\n\next4_feat_ktype was setting the \"release\" handler to \"kfree\", which\ndoesn't have a matching function prototype. Add a simple wrapper\nwith the correct prototype.\n\nThis was found as a result of Clang's new -Wcast-function-type-strict\nflag, which is more sensitive than the simpler -Wcast-function-type,\nwhich only checks for type width mismatches.\n\nNote that this code is only reached when ext4 is a loadable module and\nit is being unloaded:\n\n CFI failure at kobject_put+0xbb/0x1b0 (target: kfree+0x0/0x180; expected type: 0x7c4aa698)\n ...\n RIP: 0010:kobject_put+0xbb/0x1b0\n ...\n Call Trace:\n  \u003cTASK\u003e\n  ext4_exit_sysfs+0x14/0x60 [ext4]\n  cleanup_module+0x67/0xedb [ext4]","modified":"2026-04-02T09:43:49.440081Z","published":"2025-09-15T14:21:53.061Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53224.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0a1394e07c5d6bf1bfc25db8589ff1b1bfb6f46a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/118901ad1f25d2334255b3d50512fa20591531cd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1ba10d3640e9783dad811fe4e24d55465c37c64d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2b69cdd9f9a7f596e3dd31f05f9852940d177924"},{"type":"WEB","url":"https://git.kernel.org/stable/c/94d8de83286fb1827340eba35b61c308f6b46ead"},{"type":"WEB","url":"https://git.kernel.org/stable/c/99e3fd21f8fc975c95e8cf76fbf6a3d2656f8f71"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c98077f7598a562f51051eec043be0cb3e1b1b5e"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53224.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53224"},{"type":"PACKAGE","url":"https://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":"b99fee58a20ab8e0557cce87b6f187e325993142"},{"fixed":"2b69cdd9f9a7f596e3dd31f05f9852940d177924"},{"fixed":"99e3fd21f8fc975c95e8cf76fbf6a3d2656f8f71"},{"fixed":"1ba10d3640e9783dad811fe4e24d55465c37c64d"},{"fixed":"c98077f7598a562f51051eec043be0cb3e1b1b5e"},{"fixed":"0a1394e07c5d6bf1bfc25db8589ff1b1bfb6f46a"},{"fixed":"94d8de83286fb1827340eba35b61c308f6b46ead"},{"fixed":"118901ad1f25d2334255b3d50512fa20591531cd"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53224.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}