# CVE-2022-50329: block, bfq: fix uaf for bfqq in bfq_exit_icq_bfqq

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 7% of CVEs (2026-12-02)
- Published: 2025-09-15T14:49:32.123Z
- Modified: 2026-10-15T22:17:30.263Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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().

(As written by CVE List.)

## Affected

- Linux Linux: from 5533742c7cb1bc9b1f0bf401cc397d44a3a9e07a before 1425f1bb5df5239021fd09ebc2a5e8070e705d36; from 094f3d9314d67691cb21ba091c1b528f6e3c4893 before 7949b0df3dd9f4817ed4a4e989fa9ee81df6205f; from b22fd72bfebda3956efc4431b60ddfc0a51e03e0 before cfe5b38c37720313eff0dec5517442c7ab3c9a20; from 761564d93c8265f65543acf0a576b32d66bfa26a before 1ed959fef5b1c6f1a7a3fbea543698c30ebd6678; from 64dc8c732f5c2b406cc752e6aaa1bd5471159cab before 246cf66e300b76099b5dbd3fdd39e9a5dbc53f02; from 5.15.86 before 5.15.87; from 6.0.16 before 6.0.17; from 6.1.2 before 6.1.3
- linux linux_kernel: 5.15.86; 6.0.16; 6.1.2; 6.2

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/1425f1bb5df5239021fd09ebc2a5e8070e705d36> (patch)
- <https://git.kernel.org/stable/c/7949b0df3dd9f4817ed4a4e989fa9ee81df6205f> (patch)
- <https://git.kernel.org/stable/c/cfe5b38c37720313eff0dec5517442c7ab3c9a20> (patch)
- <https://git.kernel.org/stable/c/1ed959fef5b1c6f1a7a3fbea543698c30ebd6678> (patch)
- <https://git.kernel.org/stable/c/246cf66e300b76099b5dbd3fdd39e9a5dbc53f02> (patch)

## Sources

- CVE List: [CVE-2022-50329](https://www.cve.org/CVERecord?id=CVE-2022-50329), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2022-50329](https://nvd.nist.gov/vuln/detail/CVE-2022-50329), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2022-50329 · Whole record: https://cve.day/CVE-2022-50329.json · Rebuilt by cve.day 2026-11-25T22:58:21.167Z
