Skip to content
Heist/ feed
Back to feed
UnratedFix available

block: fix q->blkg_list corruption during disk rebind

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: block: fix q->blkg_list corruption during disk rebind Multiple gendisk instances can allocated/added for single request queue in case of disk rebind. blkg may still stay in q->blkg_list when calling blkcg_init_disk() for rebind, then q->blkg_list becomes corrupted. Fix the list corruption issue by: - add blkg_init_queue() to initialize q->blkg_list & q->blkcg_mutex only - move calling blkg_init_queue() into blk_alloc_queue() The list corruption should be started since commit f1c006f1c685 ("blk-cgroup: synchronize pd_free_fn() from blkg_free_workfn() and blkcg_deactivate_policy()") which delays removing blkg from q->blkg_list into blkg_free_workfn().

Products
Kernel
Affected versions
Not specified
Fixed versions
6.1.17, 6.2.4, 6.6.28, 6.8.7
CVEs
CVE-2024-35974
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 05:26 UTC · Revision 1

Source evidence

block: fix q->blkg_list corruption during disk rebind

core-osv · Original source

Published 20 May 2024, 09:42 UTC

In the Linux kernel, the following vulnerability has been resolved: block: fix q->blkg_list corruption during disk rebind Multiple gendisk instances can allocated/added for single request queue in case of disk rebind. blkg may still stay in q->blkg_list when calling blkcg_init_disk() for rebind, then q->blkg_list becomes corrupted. Fix the list corruption issue by: - add blkg_init_queue() to initialize q->blkg_list & q->blkcg_mutex only - move calling blkg_init_queue() into blk_alloc_queue() The list corruption should be started since commit f1c006f1c685 ("blk-cgroup: synchronize pd_free_fn() from blkg_free_workfn() and blkcg_deactivate_policy()") which delays removing blkg from q->blkg_list into blkg_free_workfn().

osv:CVE-2024-35974

Kernel

Fixed versions: 6.1.17, 6.2.4, 6.6.28, 6.8.7

Complete source record
{
  "id": "4df866e476679080e22b3ecd28ff51ecd076ebbbcad6cfb1105e051d1336df6c",
  "url": "https://osv.dev/vulnerability/CVE-2024-35974",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "block: fix q->blkg_list corruption during disk rebind",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: block: fix q->blkg_list corruption during disk rebind Multiple gendisk instances can allocated/added for single request queue in case of disk rebind. blkg may still stay in q->blkg_list when calling blkcg_init_disk() for rebind, then q->blkg_list becomes corrupted. Fix the list corruption issue by: - add blkg_init_queue() to initialize q->blkg_list & q->blkcg_mutex only - move calling blkg_init_queue() into blk_alloc_queue() The list corruption should be started since commit f1c006f1c685 (\"blk-cgroup: synchronize pd_free_fn() from blkg_free_workfn() and blkcg_deactivate_policy()\") which delays removing blkg from q->blkg_list into blkg_free_workfn().",
    "evidence": "osv:CVE-2024-35974",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.1.17",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.2.4",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.28",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.8.7",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2024-35974",
      "aliases": [
        "CVE-2024-35974"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "81c1188905f88b77743d1fdeeedfc8cb7b67787d"
                },
                {
                  "fixed": "b5dae1cd0d8368b4338430ff93403df67f0b8bcc"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "bfe46d2efe46c5c952f982e2ca94fe2ec5e58e2a"
                },
                {
                  "fixed": "083b58373463a6e5ee60ecb135269348f68ad7df"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "1059699f87eb0b3aa9d574b91a572d534897134a"
                },
                {
                  "fixed": "740ffad95ca8033bd6e080ed337655b13b4d38ac"
                },
                {
                  "fixed": "858c489d81d659af17a4d11cfaad2afb42e47a76"
                },
                {
                  "fixed": "8b8ace080319a866f5dfe9da8e665ae51d971c54"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6.1.16"
                },
                {
                  "fixed": "6.1.17"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6.2.3"
                },
                {
                  "fixed": "6.2.4"
                }
              ]
            }
          ],
          "versions": [
            "v6.1.16",
            "v6.2.3"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-35974.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.18.0"
                },
                {
                  "fixed": "6.1.17"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.2.4"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.3.0"
                },
                {
                  "fixed": "6.6.28"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.8.7"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-35974.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:26.353031250Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/083b58373463a6e5ee60ecb135269348f68ad7df",
        "https://git.kernel.org/stable/c/740ffad95ca8033bd6e080ed337655b13b4d38ac",
        "https://git.kernel.org/stable/c/858c489d81d659af17a4d11cfaad2afb42e47a76",
        "https://git.kernel.org/stable/c/8b8ace080319a866f5dfe9da8e665ae51d971c54",
        "https://git.kernel.org/stable/c/b5dae1cd0d8368b4338430ff93403df67f0b8bcc",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35974.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-35974",
        "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/2024/35xxx/CVE-2024-35974.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-35974",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 492722,
  "published_at": "2024-05-20T09:42:01.114+00:00"
}