Skip to content
Heist/ feed
Back to feed
UnratedFix available

NTB: fix possible name leak in ntb_register_device()

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: NTB: fix possible name leak in ntb_register_device() If device_register() fails in ntb_register_device(), the device name allocated by dev_set_name() should be freed. As per the comment in device_register(), callers should use put_device() to give up the reference in the error path. So fix this by calling put_device() in the error path so that the name can be freed in kobject_cleanup(). As a result of this, put_device() in the error path of ntb_register_device() is removed and the actual error is returned. [mani: reworded commit message]

Products
Kernel
Affected versions
Not specified
Fixed versions
5.15.153, 6.1.83, 6.6.23, 6.7.11, 6.8.2
CVEs
CVE-2023-52652
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 02:53 UTC · Revision 1

Source evidence

NTB: fix possible name leak in ntb_register_device()

core-osv · Original source

Published 1 May 2024, 13:03 UTC

In the Linux kernel, the following vulnerability has been resolved: NTB: fix possible name leak in ntb_register_device() If device_register() fails in ntb_register_device(), the device name allocated by dev_set_name() should be freed. As per the comment in device_register(), callers should use put_device() to give up the reference in the error path. So fix this by calling put_device() in the error path so that the name can be freed in kobject_cleanup(). As a result of this, put_device() in the error path of ntb_register_device() is removed and the actual error is returned. [mani: reworded commit message]

osv:CVE-2023-52652

Kernel

Fixed versions: 5.15.153, 6.1.83, 6.6.23, 6.7.11, 6.8.2

Complete source record
{
  "id": "e815e5cc457f8a859e1c8faa2f79da7f097634dd123cb91dd56a634ba39f0684",
  "url": "https://osv.dev/vulnerability/CVE-2023-52652",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "NTB: fix possible name leak in ntb_register_device()",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: NTB: fix possible name leak in ntb_register_device() If device_register() fails in ntb_register_device(), the device name allocated by dev_set_name() should be freed. As per the comment in device_register(), callers should use put_device() to give up the reference in the error path. So fix this by calling put_device() in the error path so that the name can be freed in kobject_cleanup(). As a result of this, put_device() in the error path of ntb_register_device() is removed and the actual error is returned. [mani: reworded commit message]",
    "evidence": "osv:CVE-2023-52652",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.15.153",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.83",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.23",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.7.11",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.8.2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2023-52652",
      "aliases": [
        "CVE-2023-52652"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "a1bd3baeb2f18b2b3d0f98ce5fdaa725149b950b"
                },
                {
                  "fixed": "a62b9f3d7bbfac874cc0c638bc1776dcf1f8ec06"
                },
                {
                  "fixed": "6632a54ac8057cc0b0d789c6f73883e871bcd25c"
                },
                {
                  "fixed": "a039690d323221eb5865f1f31db3ec264e7a14b6"
                },
                {
                  "fixed": "e8025439ef8e16029dc313d78a351ef192469b7b"
                },
                {
                  "fixed": "913421f9f7fd8324dcc41753d0f28b52e177ef04"
                },
                {
                  "fixed": "aebfdfe39b9327a3077d0df8db3beb3160c9bdd0"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52652.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.2.0"
                },
                {
                  "fixed": "5.15.153"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.83"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.23"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.7.11"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.8.0"
                },
                {
                  "fixed": "6.8.2"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52652.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:32.847301322Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/6632a54ac8057cc0b0d789c6f73883e871bcd25c",
        "https://git.kernel.org/stable/c/913421f9f7fd8324dcc41753d0f28b52e177ef04",
        "https://git.kernel.org/stable/c/a039690d323221eb5865f1f31db3ec264e7a14b6",
        "https://git.kernel.org/stable/c/a62b9f3d7bbfac874cc0c638bc1776dcf1f8ec06",
        "https://git.kernel.org/stable/c/aebfdfe39b9327a3077d0df8db3beb3160c9bdd0",
        "https://git.kernel.org/stable/c/e8025439ef8e16029dc313d78a351ef192469b7b",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52652.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-52652",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52652.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-52652",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 499834,
  "published_at": "2024-05-01T13:03:58.575+00:00"
}