CVE-2023-53298 (GCVE-0-2023-53298)
Vulnerability from cvelistv5
Published
2025-09-16 08:11
Modified
2025-09-16 08:11
Severity ?
Summary
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.
Impacted products
Vendor Product Version
Linux Linux Version: 5ce3f32b5264b337bfd13a780452a17705307725
Version: 5ce3f32b5264b337bfd13a780452a17705307725
Version: 5ce3f32b5264b337bfd13a780452a17705307725
Version: 5ce3f32b5264b337bfd13a780452a17705307725
Version: 5ce3f32b5264b337bfd13a780452a17705307725
Version: 5ce3f32b5264b337bfd13a780452a17705307725
Version: 5ce3f32b5264b337bfd13a780452a17705307725
Version: 5ce3f32b5264b337bfd13a780452a17705307725
Create a notification for this product.
   Linux Linux Version: 3.13
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/nfc/st-nci/se.c",
            "drivers/nfc/st21nfca/se.c",
            "net/nfc/netlink.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "5321da6d84b87a34eea441677d649c34bd854169",
              "status": "affected",
              "version": "5ce3f32b5264b337bfd13a780452a17705307725",
              "versionType": "git"
            },
            {
              "lessThan": "af452e35b9e6a87cd49e54a7a3d60d934b194651",
              "status": "affected",
              "version": "5ce3f32b5264b337bfd13a780452a17705307725",
              "versionType": "git"
            },
            {
              "lessThan": "271eed1736426103335c5aac50f15b0f4d236bc0",
              "status": "affected",
              "version": "5ce3f32b5264b337bfd13a780452a17705307725",
              "versionType": "git"
            },
            {
              "lessThan": "8978315cb4bf8878c9c8ec05dafd8f7ff539860d",
              "status": "affected",
              "version": "5ce3f32b5264b337bfd13a780452a17705307725",
              "versionType": "git"
            },
            {
              "lessThan": "c494365432dcdc549986f4d9af9eb6190cbdb153",
              "status": "affected",
              "version": "5ce3f32b5264b337bfd13a780452a17705307725",
              "versionType": "git"
            },
            {
              "lessThan": "b2036a252381949d3b743a3de069324ae3028a57",
              "status": "affected",
              "version": "5ce3f32b5264b337bfd13a780452a17705307725",
              "versionType": "git"
            },
            {
              "lessThan": "ba98db08895748c12e5ded52cd1598dce2c79e55",
              "status": "affected",
              "version": "5ce3f32b5264b337bfd13a780452a17705307725",
              "versionType": "git"
            },
            {
              "lessThan": "25ff6f8a5a3b8dc48e8abda6f013e8cc4b14ffea",
              "status": "affected",
              "version": "5ce3f32b5264b337bfd13a780452a17705307725",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/nfc/st-nci/se.c",
            "drivers/nfc/st21nfca/se.c",
            "net/nfc/netlink.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "3.13"
            },
            {
              "lessThan": "3.13",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.14.*",
              "status": "unaffected",
              "version": "4.14.308",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.276",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.235",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.173",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.100",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.18",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.2.*",
              "status": "unaffected",
              "version": "6.2.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.3",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.14.308",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.276",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.235",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.173",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.100",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.18",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.2.5",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.3",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "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\u0027t simply check \u0027dev-\u003eops-\u003ese_io()\u0027 return value as it\nmay be negative in both cases: when the timer was charged and was not."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-09-16T08:11:30.044Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "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"
        }
      ],
      "title": "nfc: fix memory leak of se_io context in nfc_genl_se_io",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2023-53298",
    "datePublished": "2025-09-16T08:11:30.044Z",
    "dateReserved": "2025-09-16T08:09:37.993Z",
    "dateUpdated": "2025-09-16T08:11:30.044Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2023-53298\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-09-16T08:15:39.167\",\"lastModified\":\"2025-09-16T12:49:16.060\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"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\u0027t simply check \u0027dev-\u003eops-\u003ese_io()\u0027 return value as it\\nmay be negative in both cases: when the timer was charged and was not.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/25ff6f8a5a3b8dc48e8abda6f013e8cc4b14ffea\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/271eed1736426103335c5aac50f15b0f4d236bc0\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/5321da6d84b87a34eea441677d649c34bd854169\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/8978315cb4bf8878c9c8ec05dafd8f7ff539860d\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/af452e35b9e6a87cd49e54a7a3d60d934b194651\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/b2036a252381949d3b743a3de069324ae3028a57\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/ba98db08895748c12e5ded52cd1598dce2c79e55\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/c494365432dcdc549986f4d9af9eb6190cbdb153\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…