0.0
NA
CVE-2023-53298
nfc: fix memory leak of se_io context in nfc_genl_se_io
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.

INFO

Published Date :

Sept. 16, 2025, 8:15 a.m.

Last Modified :

Sept. 16, 2025, 12:49 p.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2023-53298 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
Solution
Fix a memory leak by explicitly freeing context on error paths.
  • Apply the patch to fix the memory leak.
  • Ensure context is freed on error paths.
  • Free cb_context explicitly on error paths.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2023-53298 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2023-53298 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2023-53298 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2023-53298 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Sep. 16, 2025

    Action Type Old Value New Value
    Added 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.
    Added Reference https://git.kernel.org/stable/c/25ff6f8a5a3b8dc48e8abda6f013e8cc4b14ffea
    Added Reference https://git.kernel.org/stable/c/271eed1736426103335c5aac50f15b0f4d236bc0
    Added Reference https://git.kernel.org/stable/c/5321da6d84b87a34eea441677d649c34bd854169
    Added Reference https://git.kernel.org/stable/c/8978315cb4bf8878c9c8ec05dafd8f7ff539860d
    Added Reference https://git.kernel.org/stable/c/af452e35b9e6a87cd49e54a7a3d60d934b194651
    Added Reference https://git.kernel.org/stable/c/b2036a252381949d3b743a3de069324ae3028a57
    Added Reference https://git.kernel.org/stable/c/ba98db08895748c12e5ded52cd1598dce2c79e55
    Added Reference https://git.kernel.org/stable/c/c494365432dcdc549986f4d9af9eb6190cbdb153
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
No CVSS metrics available for this vulnerability.