{"id":"CVE-2023-53298","summary":"nfc: fix memory leak of se_io context in nfc_genl_se_io","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnfc: fix memory leak of se_io context in nfc_genl_se_io\n\nThe callback context for sending/receiving APDUs to/from the selected\nsecure element is allocated inside nfc_genl_se_io and supposed to be\neventually freed in se_io_cb callback function. However, there are several\nerror paths where the bwi_timer is not charged to call se_io_cb later, and\nthe cb_context is leaked.\n\nThe patch proposes to free the cb_context explicitly on those error paths.\n\nAt the moment we can't simply check 'dev-\u003eops-\u003ese_io()' return value as it\nmay be negative in both cases: when the timer was charged and was not.","modified":"2026-04-02T09:43:58.047310Z","published":"2025-09-16T08:11:30.044Z","related":["SUSE-SU-2025:03614-1","SUSE-SU-2025:03615-1","SUSE-SU-2025:03628-1","SUSE-SU-2025:3716-1","SUSE-SU-2025:3761-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53298.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/25ff6f8a5a3b8dc48e8abda6f013e8cc4b14ffea"},{"type":"WEB","url":"https://git.kernel.org/stable/c/271eed1736426103335c5aac50f15b0f4d236bc0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5321da6d84b87a34eea441677d649c34bd854169"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8978315cb4bf8878c9c8ec05dafd8f7ff539860d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/af452e35b9e6a87cd49e54a7a3d60d934b194651"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b2036a252381949d3b743a3de069324ae3028a57"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ba98db08895748c12e5ded52cd1598dce2c79e55"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c494365432dcdc549986f4d9af9eb6190cbdb153"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53298.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53298"},{"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":"5ce3f32b5264b337bfd13a780452a17705307725"},{"fixed":"5321da6d84b87a34eea441677d649c34bd854169"},{"fixed":"af452e35b9e6a87cd49e54a7a3d60d934b194651"},{"fixed":"271eed1736426103335c5aac50f15b0f4d236bc0"},{"fixed":"8978315cb4bf8878c9c8ec05dafd8f7ff539860d"},{"fixed":"c494365432dcdc549986f4d9af9eb6190cbdb153"},{"fixed":"b2036a252381949d3b743a3de069324ae3028a57"},{"fixed":"ba98db08895748c12e5ded52cd1598dce2c79e55"},{"fixed":"25ff6f8a5a3b8dc48e8abda6f013e8cc4b14ffea"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53298.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"}]}