CVE-2022-50329 (GCVE-0-2022-50329)

Vulnerability from cvelistv5 – Published: 2025-09-15 14:49 – Updated: 2026-08-05 08:58
VLAI
Title
block, bfq: fix uaf for bfqq in bfq_exit_icq_bfqq
Summary
In the Linux kernel, the following vulnerability has been resolved: block, bfq: fix uaf for bfqq in bfq_exit_icq_bfqq Commit 64dc8c732f5c ("block, bfq: fix possible uaf for 'bfqq->bic'") will access 'bic->bfqq' in bic_set_bfqq(), however, bfq_exit_icq_bfqq() can free bfqq first, and then call bic_set_bfqq(), which will cause uaf. Fix the problem by moving bfq_exit_bfqq() behind bic_set_bfqq().
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 5533742c7cb1bc9b1f0bf401cc397d44a3a9e07a , < 1425f1bb5df5239021fd09ebc2a5e8070e705d36 (git)
Affected: 094f3d9314d67691cb21ba091c1b528f6e3c4893 , < 7949b0df3dd9f4817ed4a4e989fa9ee81df6205f (git)
Affected: b22fd72bfebda3956efc4431b60ddfc0a51e03e0 , < cfe5b38c37720313eff0dec5517442c7ab3c9a20 (git)
Affected: 761564d93c8265f65543acf0a576b32d66bfa26a , < 1ed959fef5b1c6f1a7a3fbea543698c30ebd6678 (git)
Affected: 64dc8c732f5c2b406cc752e6aaa1bd5471159cab , < 246cf66e300b76099b5dbd3fdd39e9a5dbc53f02 (git)
guessed Create a notification for this product.
Linux Linux Affected: 5.15.86 , < 5.15.87 (semver)
Affected: 6.0.16 , < 6.0.17 (semver)
Affected: 6.1.2 , < 6.1.3 (semver)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "block/bfq-iosched.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "1425f1bb5df5239021fd09ebc2a5e8070e705d36",
              "status": "affected",
              "version": "5533742c7cb1bc9b1f0bf401cc397d44a3a9e07a",
              "versionType": "git"
            },
            {
              "lessThan": "7949b0df3dd9f4817ed4a4e989fa9ee81df6205f",
              "status": "affected",
              "version": "094f3d9314d67691cb21ba091c1b528f6e3c4893",
              "versionType": "git"
            },
            {
              "lessThan": "cfe5b38c37720313eff0dec5517442c7ab3c9a20",
              "status": "affected",
              "version": "b22fd72bfebda3956efc4431b60ddfc0a51e03e0",
              "versionType": "git"
            },
            {
              "lessThan": "1ed959fef5b1c6f1a7a3fbea543698c30ebd6678",
              "status": "affected",
              "version": "761564d93c8265f65543acf0a576b32d66bfa26a",
              "versionType": "git"
            },
            {
              "lessThan": "246cf66e300b76099b5dbd3fdd39e9a5dbc53f02",
              "status": "affected",
              "version": "64dc8c732f5c2b406cc752e6aaa1bd5471159cab",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "block/bfq-iosched.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "5.15.87",
              "status": "affected",
              "version": "5.15.86",
              "versionType": "semver"
            },
            {
              "lessThan": "6.0.17",
              "status": "affected",
              "version": "6.0.16",
              "versionType": "semver"
            },
            {
              "lessThan": "6.1.3",
              "status": "affected",
              "version": "6.1.2",
              "versionType": "semver"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.87",
                  "versionStartIncluding": "5.15.86",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.17",
                  "versionStartIncluding": "6.0.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.3",
                  "versionStartIncluding": "6.1.2",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nblock, bfq: fix uaf for bfqq in bfq_exit_icq_bfqq\n\nCommit 64dc8c732f5c (\"block, bfq: fix possible uaf for \u0027bfqq-\u003ebic\u0027\")\nwill access \u0027bic-\u003ebfqq\u0027 in bic_set_bfqq(), however, bfq_exit_icq_bfqq()\ncan free bfqq first, and then call bic_set_bfqq(), which will cause uaf.\n\nFix the problem by moving bfq_exit_bfqq() behind bic_set_bfqq()."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The vulnerable path runs in bfq_exit_icq during exit_io_context after local block I/O on a BFQ-managed device; it is reached via process exit/syscalls, not network or physical input.\nAC:L - An unprivileged attacker fully controls triggering by performing I/O then exiting so the process ref drops and bfq_put_queue frees bfqq before bic_set_bfqq; BFQ is commonly enabled (e.g. Android/desktops), so success does not depend on conditions outside attacker control.\nPR:L - Any unprivileged local user can open/write files on a BFQ-backed filesystem and exit; no capabilities or root are required along the exit_io_context \u2192 bfq_exit_icq path.\nUI:N - Exploitation needs only the attacker\u0027s own I/O and process exit; no victim action is required.\nS:U - This is a standard in-kernel heap UAF enabling privilege escalation within the same kernel security authority, not a VM/IOMMU/sandbox boundary cross.\nC:H - Use-after-free of struct bfq_queue lets an attacker reclaim and control the freed object, enabling arbitrary kernel memory disclosure primitives.\nI:H - bic_set_bfqq writes old_bfqq-\u003ebic on the freed object; with heap spray this yields a write primitive suitable for control-flow hijacking or arbitrary kernel modification.\nA:H - The UAF can oops/panic the kernel on access to freed bfqq memory even without full exploitation, so availability impact is high."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T08:58:13.157Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/1425f1bb5df5239021fd09ebc2a5e8070e705d36"
        },
        {
          "url": "https://git.kernel.org/stable/c/7949b0df3dd9f4817ed4a4e989fa9ee81df6205f"
        },
        {
          "url": "https://git.kernel.org/stable/c/cfe5b38c37720313eff0dec5517442c7ab3c9a20"
        },
        {
          "url": "https://git.kernel.org/stable/c/1ed959fef5b1c6f1a7a3fbea543698c30ebd6678"
        },
        {
          "url": "https://git.kernel.org/stable/c/246cf66e300b76099b5dbd3fdd39e9a5dbc53f02"
        }
      ],
      "title": "block, bfq: fix uaf for bfqq in bfq_exit_icq_bfqq",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50329",
    "datePublished": "2025-09-15T14:49:32.123Z",
    "dateReserved": "2025-09-15T14:18:36.815Z",
    "dateUpdated": "2026-08-05T08:58:13.157Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2022-50329",
      "date": "2026-09-23",
      "epss": "0.00165",
      "percentile": "0.06178"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "block/bfq-iosched.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "1425f1bb5df5239021fd09ebc2a5e8070e705d36",
                    "status": "affected",
                    "version": "5533742c7cb1bc9b1f0bf401cc397d44a3a9e07a",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "7949b0df3dd9f4817ed4a4e989fa9ee81df6205f",
                    "status": "affected",
                    "version": "094f3d9314d67691cb21ba091c1b528f6e3c4893",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "cfe5b38c37720313eff0dec5517442c7ab3c9a20",
                    "status": "affected",
                    "version": "b22fd72bfebda3956efc4431b60ddfc0a51e03e0",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "1ed959fef5b1c6f1a7a3fbea543698c30ebd6678",
                    "status": "affected",
                    "version": "761564d93c8265f65543acf0a576b32d66bfa26a",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "246cf66e300b76099b5dbd3fdd39e9a5dbc53f02",
                    "status": "affected",
                    "version": "64dc8c732f5c2b406cc752e6aaa1bd5471159cab",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "block/bfq-iosched.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "5.15.87",
                    "status": "affected",
                    "version": "5.15.86",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "6.0.17",
                    "status": "affected",
                    "version": "6.0.16",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "6.1.3",
                    "status": "affected",
                    "version": "6.1.2",
                    "versionType": "semver"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "configurations": [
          {
            "nodes": [
              {
                "cpeMatch": [
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:5.15.86:*:*:*:*:*:*:*",
                    "matchCriteriaId": "565709DF-CD9E-45F6-8BAB-1CDEBC2D14F9",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:6.0.16:*:*:*:*:*:*:*",
                    "matchCriteriaId": "0F12ACFA-7194-43FD-B79A-93AEA2668E6F",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:6.1.2:*:*:*:*:*:*:*",
                    "matchCriteriaId": "4A1A2CF8-ACB8-4475-B530-92ECBB0ADBF0",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:6.2:rc1:*:*:*:*:*:*",
                    "matchCriteriaId": "FF501633-2F44-4913-A8EE-B021929F49F6",
                    "vulnerable": true
                  }
                ],
                "negate": false,
                "operator": "OR"
              }
            ]
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nblock, bfq: fix uaf for bfqq in bfq_exit_icq_bfqq\n\nCommit 64dc8c732f5c (\"block, bfq: fix possible uaf for \u0027bfqq-\u003ebic\u0027\")\nwill access \u0027bic-\u003ebfqq\u0027 in bic_set_bfqq(), however, bfq_exit_icq_bfqq()\ncan free bfqq first, and then call bic_set_bfqq(), which will cause uaf.\n\nFix the problem by moving bfq_exit_bfqq() behind bic_set_bfqq()."
          }
        ],
        "id": "CVE-2022-50329",
        "lastModified": "2026-08-04T10:18:11.217",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 7.8,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.8,
              "impactScore": 5.9,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            },
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 7.8,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.8,
              "impactScore": 5.9,
              "source": "nvd@nist.gov",
              "type": "Primary"
            }
          ]
        },
        "published": "2025-09-15T15:15:45.067",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/1425f1bb5df5239021fd09ebc2a5e8070e705d36"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/1ed959fef5b1c6f1a7a3fbea543698c30ebd6678"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/246cf66e300b76099b5dbd3fdd39e9a5dbc53f02"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/7949b0df3dd9f4817ed4a4e989fa9ee81df6205f"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/cfe5b38c37720313eff0dec5517442c7ab3c9a20"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Modified",
        "weaknesses": [
          {
            "description": [
              {
                "lang": "en",
                "value": "CWE-416"
              }
            ],
            "source": "nvd@nist.gov",
            "type": "Primary"
          }
        ]
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-08-04T19:40:38+00:00",
      "cve": "CVE-2022-50329",
      "id": "CVE-2022-50329",
      "initial_release_date": "2022-01-01T00:00:00+00:00",
      "product_status:known_affected": "156",
      "product_status:known_not_affected": "118",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: Linux kernel: Denial of Service due to use-after-free in BFQ scheduler",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-50329.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…