Skip to content
Heist/ feed
Back to feed
UnratedFix available

erofs: Fix pcluster memleak when its block address is zero

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: erofs: Fix pcluster memleak when its block address is zero syzkaller reported a memleak: https://syzkaller.appspot.com/bug?id=62f37ff612f0021641eda5b17f056f1668aa9aed unreferenced object 0xffff88811009c7f8 (size 136): ... backtrace: [] z_erofs_do_read_page+0x99b/0x1740 [] z_erofs_readahead+0x24e/0x580 [] read_pages+0x86/0x3d0 ... syzkaller constructed a case: in z_erofs_register_pcluster(), ztailpacking = false and map->m_pa = zero. This makes pcl->obj.index be zero although pcl is not a inline pcluster. Then following path adds refcount for grp, but the refcount won't be put because pcl is inline. z_erofs_readahead() z_erofs_do_read_page() # for another page z_erofs_collector_begin() erofs_find_workgroup() erofs_workgroup_get() Since it's illegal for the block address of a non-inlined pcluster to be zero, add check here to avoid registering the pcluster which would be leaked.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.0.16, 6.1.2
CVEs
CVE-2022-50743
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 22:32 UTC · Revision 1

Source evidence

erofs: Fix pcluster memleak when its block address is zero

core-osv · Original source

Published 24 Dec 2025, 13:05 UTC

In the Linux kernel, the following vulnerability has been resolved: erofs: Fix pcluster memleak when its block address is zero syzkaller reported a memleak: https://syzkaller.appspot.com/bug?id=62f37ff612f0021641eda5b17f056f1668aa9aed unreferenced object 0xffff88811009c7f8 (size 136): ... backtrace: [] z_erofs_do_read_page+0x99b/0x1740 [] z_erofs_readahead+0x24e/0x580 [] read_pages+0x86/0x3d0 ... syzkaller constructed a case: in z_erofs_register_pcluster(), ztailpacking = false and map->m_pa = zero. This makes pcl->obj.index be zero although pcl is not a inline pcluster. Then following path adds refcount for grp, but the refcount won't be put because pcl is inline. z_erofs_readahead() z_erofs_do_read_page() # for another page z_erofs_collector_begin() erofs_find_workgroup() erofs_workgroup_get() Since it's illegal for the block address of a non-inlined pcluster to be zero, add check here to avoid registering the pcluster which would be leaked.

osv:CVE-2022-50743

Kernel

Fixed versions: 6.0.16, 6.1.2

Complete source record
{
  "id": "b7a38c5adf30ca1159bc214b7bca9d3cf218a90c4cc2e2a1a2031284606bfd8f",
  "url": "https://osv.dev/vulnerability/CVE-2022-50743",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "erofs: Fix pcluster memleak when its block address is zero",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: erofs: Fix pcluster memleak when its block address is zero syzkaller reported a memleak: https://syzkaller.appspot.com/bug?id=62f37ff612f0021641eda5b17f056f1668aa9aed unreferenced object 0xffff88811009c7f8 (size 136): ... backtrace: [] z_erofs_do_read_page+0x99b/0x1740 [] z_erofs_readahead+0x24e/0x580 [] read_pages+0x86/0x3d0 ... syzkaller constructed a case: in z_erofs_register_pcluster(), ztailpacking = false and map->m_pa = zero. This makes pcl->obj.index be zero although pcl is not a inline pcluster. Then following path adds refcount for grp, but the refcount won't be put because pcl is inline. z_erofs_readahead() z_erofs_do_read_page() # for another page z_erofs_collector_begin() erofs_find_workgroup() erofs_workgroup_get() Since it's illegal for the block address of a non-inlined pcluster to be zero, add check here to avoid registering the pcluster which would be leaked.",
    "evidence": "osv:CVE-2022-50743",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.0.16",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2022-50743",
      "aliases": [
        "CVE-2022-50743"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "cecf864d3d76d50e3d9c58145e286a0b8c284e92"
                },
                {
                  "fixed": "ac54c1f7b288d83b6ba1e320efff24ecc21309cd"
                },
                {
                  "fixed": "618e712b99c78d1004b70a1a9ab0a4830d0b2673"
                },
                {
                  "fixed": "c42c0ffe81176940bd5dead474216b7198d77675"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50743.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.17.0"
                },
                {
                  "fixed": "6.0.16"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.1.0"
                },
                {
                  "fixed": "6.1.2"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50743.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:31.928773433Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/618e712b99c78d1004b70a1a9ab0a4830d0b2673",
        "https://git.kernel.org/stable/c/ac54c1f7b288d83b6ba1e320efff24ecc21309cd",
        "https://git.kernel.org/stable/c/c42c0ffe81176940bd5dead474216b7198d77675",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50743.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-50743",
        "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/2022/50xxx/CVE-2022-50743.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-50743",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 499157,
  "published_at": "2025-12-24T13:05:40.297+00:00"
}