{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-53298","id":"CVE-2023-53298","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","descriptionLong":"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.","published":"2025-09-16T08:11:30.044Z","updated":"2026-10-28T02:31:03.795178937Z","reserved":"2025-09-16T08:09:37.993Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"OSV"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5ce3f32b5264b337bfd13a780452a17705307725","lessThan":"5321da6d84b87a34eea441677d649c34bd854169","status":"affected","versionType":"git"},{"version":"5ce3f32b5264b337bfd13a780452a17705307725","lessThan":"af452e35b9e6a87cd49e54a7a3d60d934b194651","status":"affected","versionType":"git"},{"version":"5ce3f32b5264b337bfd13a780452a17705307725","lessThan":"271eed1736426103335c5aac50f15b0f4d236bc0","status":"affected","versionType":"git"},{"version":"5ce3f32b5264b337bfd13a780452a17705307725","lessThan":"8978315cb4bf8878c9c8ec05dafd8f7ff539860d","status":"affected","versionType":"git"},{"version":"5ce3f32b5264b337bfd13a780452a17705307725","lessThan":"c494365432dcdc549986f4d9af9eb6190cbdb153","status":"affected","versionType":"git"},{"version":"5ce3f32b5264b337bfd13a780452a17705307725","lessThan":"b2036a252381949d3b743a3de069324ae3028a57","status":"affected","versionType":"git"},{"version":"5ce3f32b5264b337bfd13a780452a17705307725","lessThan":"ba98db08895748c12e5ded52cd1598dce2c79e55","status":"affected","versionType":"git"},{"version":"5ce3f32b5264b337bfd13a780452a17705307725","lessThan":"25ff6f8a5a3b8dc48e8abda6f013e8cc4b14ffea","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.13","status":"affected"},{"version":"0","lessThan":"3.13","status":"unaffected","versionType":"semver"},{"version":"4.14.308","lessThanOrEqual":"4.14.*","status":"unaffected","versionType":"semver"},{"version":"4.19.276","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.235","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.173","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.100","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.18","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.2.5","lessThanOrEqual":"6.2.*","status":"unaffected","versionType":"semver"},{"version":"6.3","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-401"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/5321da6d84b87a34eea441677d649c34bd854169","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/af452e35b9e6a87cd49e54a7a3d60d934b194651","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/271eed1736426103335c5aac50f15b0f4d236bc0","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/8978315cb4bf8878c9c8ec05dafd8f7ff539860d","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/c494365432dcdc549986f4d9af9eb6190cbdb153","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/b2036a252381949d3b743a3de069324ae3028a57","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/ba98db08895748c12e5ded52cd1598dce2c79e55","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/25ff6f8a5a3b8dc48e8abda6f013e8cc4b14ffea","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53298.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53298","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00156,"epssPercentile":0.04846,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-53298","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53298","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-53298","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-53298","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}