Skip to content
Heist/ feed
Back to feed
UnratedFix available

btrfs: zoned: fix memory leak after finding block group with super blocks

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: btrfs: zoned: fix memory leak after finding block group with super blocks At exclude_super_stripes(), if we happen to find a block group that has super blocks mapped to it and we are on a zoned filesystem, we error out as this is not supposed to happen, indicating either a bug or maybe some memory corruption for example. However we are exiting the function without freeing the memory allocated for the logical address of the super blocks. Fix this by freeing the logical address.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.15.123, 6.1.42, 6.4.7
CVEs
CVE-2023-54297
Confirmed fixed CVEs
Not specified
Updated in this feed
8 Nov 2026, 02:43 UTC · Revision 1

Source evidence

btrfs: zoned: fix memory leak after finding block group with super blocks

core-osv · Original source

Published 30 Dec 2025, 12:23 UTC

In the Linux kernel, the following vulnerability has been resolved: btrfs: zoned: fix memory leak after finding block group with super blocks At exclude_super_stripes(), if we happen to find a block group that has super blocks mapped to it and we are on a zoned filesystem, we error out as this is not supposed to happen, indicating either a bug or maybe some memory corruption for example. However we are exiting the function without freeing the memory allocated for the logical address of the super blocks. Fix this by freeing the logical address.

osv:CVE-2023-54297

Kernel

Fixed versions: 5.15.123, 6.1.42, 6.4.7

Complete source record
{
  "id": "f82b56960c5e9b356435fafc5290f867dc4389b888b1ef26b39b8314b8ba14b7",
  "url": "https://osv.dev/vulnerability/CVE-2023-54297",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "btrfs: zoned: fix memory leak after finding block group with super blocks",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: btrfs: zoned: fix memory leak after finding block group with super blocks At exclude_super_stripes(), if we happen to find a block group that has super blocks mapped to it and we are on a zoned filesystem, we error out as this is not supposed to happen, indicating either a bug or maybe some memory corruption for example. However we are exiting the function without freeing the memory allocated for the logical address of the super blocks. Fix this by freeing the logical address.",
    "evidence": "osv:CVE-2023-54297",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.15.123",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.42",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.4.7",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2023-54297",
      "aliases": [
        "CVE-2023-54297"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "12659251ca5df05a484eb122c2c34c18d84e797c"
                },
                {
                  "fixed": "ab80a901f8daca07c4a54af0ab0de745c9918294"
                },
                {
                  "fixed": "c35ea606196243063e63785918c7c8fe27c45798"
                },
                {
                  "fixed": "cca627afb463a4b47721eac017516ba200de85c3"
                },
                {
                  "fixed": "f1a07c2b4e2c473ec322b8b9ece071b8c88a3512"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54297.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.123"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.42"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.4.7"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54297.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:52.993577287Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/ab80a901f8daca07c4a54af0ab0de745c9918294",
        "https://git.kernel.org/stable/c/c35ea606196243063e63785918c7c8fe27c45798",
        "https://git.kernel.org/stable/c/cca627afb463a4b47721eac017516ba200de85c3",
        "https://git.kernel.org/stable/c/f1a07c2b4e2c473ec322b8b9ece071b8c88a3512",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54297.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-54297",
        "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/54xxx/CVE-2023-54297.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-54297",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 521895,
  "published_at": "2025-12-30T12:23:33.834+00:00"
}