CVE-2023-53298
JSON

5.5medium

nfc: fix memory leak of se_io context in nfc_genl_se_io

Severity
5.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.16% (higher than 5% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: nfc: fix memory leak of se_io context in nfc_genl_se_io The callback context for sending/receiving APDUs to/from the selected secure element is allocated inside nfc_genl_se_io and supposed to be eventually freed in se_io_cb callback function. However, there are several error paths where the bwi_timer is not charged to call se_io_cb later, and the cb_context is leaked. The patch proposes to free the cb_context explicitly on those error paths. At the moment we can't simply check 'dev->ops->se_io()' return value as it may be negative in both cases: when the timer was charged and was not.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 5ce3f32b5264b337bfd13a780452a17705307725 before 5321da6d84b87a34eea441677d649c34bd854169, from 5ce3f32b5264b337bfd13a780452a17705307725 before af452e35b9e6a87cd49e54a7a3d60d934b194651, from 5ce3f32b5264b337bfd13a780452a17705307725 before 271eed1736426103335c5aac50f15b0f4d236bc0, from 5ce3f32b5264b337bfd13a780452a17705307725 before 8978315cb4bf8878c9c8ec05dafd8f7ff539860d, from 5ce3f32b5264b337bfd13a780452a17705307725 before c494365432dcdc549986f4d9af9eb6190cbdb153, from 5ce3f32b5264b337bfd13a780452a17705307725 before b2036a252381949d3b743a3de069324ae3028a57, from 5ce3f32b5264b337bfd13a780452a17705307725 before ba98db08895748c12e5ded52cd1598dce2c79e55, from 5ce3f32b5264b337bfd13a780452a17705307725 before 25ff6f8a5a3b8dc48e8abda6f013e8cc4b14ffea and 1 more
Not affected: before 3.13, from 4.14.308 up to 4.14.*, from 4.19.276 up to 4.19.*, from 5.4.235 up to 5.4.*, from 5.10.173 up to 5.10.*, from 5.15.100 up to 5.15.*
CVE List
linux linux_kernelfrom 3.13 before 4.14.308, from 4.15 before 4.19.276, from 4.20 before 5.4.235, from 5.5 before 5.10.173, from 5.11 before 5.15.100, from 5.16 before 6.1.18, from 6.2 before 6.2.5NVD

All scores

CISA-ADP5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-401

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-53298 changed 2026-05-11CVE Terms of Use
NVDCVE-2023-53298 changed 2026-06-17Public domain