{"id":"CVE-2023-53298","state":"PUBLISHED","title":"nfc: fix memory leak of se_io context in nfc_genl_se_io","description":"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->ops->se_io()' return value as it\nmay be negative in both cases: when the timer was charged and was not.","publishedAt":"2025-09-16T08:11:30.044Z","updatedAt":"2026-05-11T19:42:14.483Z","severity":{"score":5.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"CISA-ADP"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5ce3f32b5264b337bfd13a780452a17705307725","status":"affected","lessThan":"5321da6d84b87a34eea441677d649c34bd854169","versionType":"git"},{"version":"5ce3f32b5264b337bfd13a780452a17705307725","status":"affected","lessThan":"af452e35b9e6a87cd49e54a7a3d60d934b194651","versionType":"git"},{"version":"5ce3f32b5264b337bfd13a780452a17705307725","status":"affected","lessThan":"271eed1736426103335c5aac50f15b0f4d236bc0","versionType":"git"},{"version":"5ce3f32b5264b337bfd13a780452a17705307725","status":"affected","lessThan":"8978315cb4bf8878c9c8ec05dafd8f7ff539860d","versionType":"git"},{"version":"5ce3f32b5264b337bfd13a780452a17705307725","status":"affected","lessThan":"c494365432dcdc549986f4d9af9eb6190cbdb153","versionType":"git"},{"version":"5ce3f32b5264b337bfd13a780452a17705307725","status":"affected","lessThan":"b2036a252381949d3b743a3de069324ae3028a57","versionType":"git"},{"version":"5ce3f32b5264b337bfd13a780452a17705307725","status":"affected","lessThan":"ba98db08895748c12e5ded52cd1598dce2c79e55","versionType":"git"},{"version":"5ce3f32b5264b337bfd13a780452a17705307725","status":"affected","lessThan":"25ff6f8a5a3b8dc48e8abda6f013e8cc4b14ffea","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nfc/st-nci/se.c","drivers/nfc/st21nfca/se.c","net/nfc/netlink.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.13","versionType":"semver"},{"version":"4.14.308","status":"unaffected","lessThanOrEqual":"4.14.*","versionType":"semver"},{"version":"4.19.276","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.235","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.173","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.100","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.18","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2.5","status":"unaffected","lessThanOrEqual":"6.2.*","versionType":"semver"},{"version":"6.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nfc/st-nci/se.c","drivers/nfc/st21nfca/se.c","net/nfc/netlink.c"]}],"references":["https://git.kernel.org/stable/c/5321da6d84b87a34eea441677d649c34bd854169","https://git.kernel.org/stable/c/af452e35b9e6a87cd49e54a7a3d60d934b194651","https://git.kernel.org/stable/c/271eed1736426103335c5aac50f15b0f4d236bc0","https://git.kernel.org/stable/c/8978315cb4bf8878c9c8ec05dafd8f7ff539860d","https://git.kernel.org/stable/c/c494365432dcdc549986f4d9af9eb6190cbdb153","https://git.kernel.org/stable/c/b2036a252381949d3b743a3de069324ae3028a57","https://git.kernel.org/stable/c/ba98db08895748c12e5ded52cd1598dce2c79e55","https://git.kernel.org/stable/c/25ff6f8a5a3b8dc48e8abda6f013e8cc4b14ffea"],"weaknesses":["CWE-401"],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/53xxx/CVE-2023-53298.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-53298","state":"PUBLISHED","datePublished":"2025-09-16T08:11:30.044Z","dateUpdated":"2026-05-11T19:42:14.483Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-09-16T08:09:37.993Z"},"containers":{"cna":{"title":"nfc: fix memory leak of se_io context in nfc_genl_se_io","descriptions":[{"lang":"en","value":"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->ops->se_io()' return value as it\nmay be negative in both cases: when the timer was charged and was not."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5ce3f32b5264b337bfd13a780452a17705307725","status":"affected","lessThan":"5321da6d84b87a34eea441677d649c34bd854169","versionType":"git"},{"version":"5ce3f32b5264b337bfd13a780452a17705307725","status":"affected","lessThan":"af452e35b9e6a87cd49e54a7a3d60d934b194651","versionType":"git"},{"version":"5ce3f32b5264b337bfd13a780452a17705307725","status":"affected","lessThan":"271eed1736426103335c5aac50f15b0f4d236bc0","versionType":"git"},{"version":"5ce3f32b5264b337bfd13a780452a17705307725","status":"affected","lessThan":"8978315cb4bf8878c9c8ec05dafd8f7ff539860d","versionType":"git"},{"version":"5ce3f32b5264b337bfd13a780452a17705307725","status":"affected","lessThan":"c494365432dcdc549986f4d9af9eb6190cbdb153","versionType":"git"},{"version":"5ce3f32b5264b337bfd13a780452a17705307725","status":"affected","lessThan":"b2036a252381949d3b743a3de069324ae3028a57","versionType":"git"},{"version":"5ce3f32b5264b337bfd13a780452a17705307725","status":"affected","lessThan":"ba98db08895748c12e5ded52cd1598dce2c79e55","versionType":"git"},{"version":"5ce3f32b5264b337bfd13a780452a17705307725","status":"affected","lessThan":"25ff6f8a5a3b8dc48e8abda6f013e8cc4b14ffea","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nfc/st-nci/se.c","drivers/nfc/st21nfca/se.c","net/nfc/netlink.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.13","versionType":"semver"},{"version":"4.14.308","status":"unaffected","lessThanOrEqual":"4.14.*","versionType":"semver"},{"version":"4.19.276","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.235","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.173","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.100","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.18","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2.5","status":"unaffected","lessThanOrEqual":"6.2.*","versionType":"semver"},{"version":"6.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nfc/st-nci/se.c","drivers/nfc/st21nfca/se.c","net/nfc/netlink.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/5321da6d84b87a34eea441677d649c34bd854169"},{"url":"https://git.kernel.org/stable/c/af452e35b9e6a87cd49e54a7a3d60d934b194651"},{"url":"https://git.kernel.org/stable/c/271eed1736426103335c5aac50f15b0f4d236bc0"},{"url":"https://git.kernel.org/stable/c/8978315cb4bf8878c9c8ec05dafd8f7ff539860d"},{"url":"https://git.kernel.org/stable/c/c494365432dcdc549986f4d9af9eb6190cbdb153"},{"url":"https://git.kernel.org/stable/c/b2036a252381949d3b743a3de069324ae3028a57"},{"url":"https://git.kernel.org/stable/c/ba98db08895748c12e5ded52cd1598dce2c79e55"},{"url":"https://git.kernel.org/stable/c/25ff6f8a5a3b8dc48e8abda6f013e8cc4b14ffea"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:42:14.483Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.13","versionEndExcluding":"4.14.308"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.13","versionEndExcluding":"4.19.276"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.13","versionEndExcluding":"5.4.235"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.13","versionEndExcluding":"5.10.173"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.13","versionEndExcluding":"5.15.100"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.13","versionEndExcluding":"6.1.18"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.13","versionEndExcluding":"6.2.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.13","versionEndExcluding":"6.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.5,"attackVector":"LOCAL","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"id":"CVE-2023-53298","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2026-01-14T18:12:51.752373Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-401","lang":"en","type":"CWE","description":"CWE-401 Missing Release of Memory after Effective Lifetime"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-01-14T18:22:53.990Z"}}]}}}