# CVE-2023-53298: nfc: fix memory leak of se_io context in nfc_genl_se_io

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-09-16T08:11:30.044Z
- Modified: 2026-06-17T06:44:46.733Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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; 3.13 (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.*; from 6.1.18 up to 6.1.*; from 6.2.5 up to 6.2.*; from 6.3 up to *)
- linux linux_kernel: from 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.5

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/5321da6d84b87a34eea441677d649c34bd854169> (patch)
- <https://git.kernel.org/stable/c/af452e35b9e6a87cd49e54a7a3d60d934b194651> (patch)
- <https://git.kernel.org/stable/c/271eed1736426103335c5aac50f15b0f4d236bc0> (patch)
- <https://git.kernel.org/stable/c/8978315cb4bf8878c9c8ec05dafd8f7ff539860d> (patch)
- <https://git.kernel.org/stable/c/c494365432dcdc549986f4d9af9eb6190cbdb153> (patch)
- <https://git.kernel.org/stable/c/b2036a252381949d3b743a3de069324ae3028a57> (patch)
- <https://git.kernel.org/stable/c/ba98db08895748c12e5ded52cd1598dce2c79e55> (patch)
- <https://git.kernel.org/stable/c/25ff6f8a5a3b8dc48e8abda6f013e8cc4b14ffea> (patch)

## Sources

- CVE List: [CVE-2023-53298](https://www.cve.org/CVERecord?id=CVE-2023-53298), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-53298](https://nvd.nist.gov/vuln/detail/CVE-2023-53298), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-53298 · Whole record: https://cve.day/CVE-2023-53298.json · Rebuilt by cve.day 2026-11-25T22:58:34.817Z
