# OSV-2022-327: Stack-use-after-return in QSemaphore::release

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2022-04-10T00:01:12.211Z
- Modified: 2022-04-27T22:12:36.132Z

## Description

OSS-Fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=46525

The issue already existed before oss-fuzz could reproduce it. oss-fuzz found
it after qdrawhelper routines were made multithreaded. There might be ways to
trigger the issue before that.

```
Crash type: Stack-use-after-return WRITE 8
Crash state:
QSemaphore::release
std::__1::__function::__func<void handleSpans<BlendSrcGeneric>
FunctionRunnable::run
```

(As written by OSS-Fuzz.)

## Affected

- qt (OSS-Fuzz): from b18959ad7ebe2311993348f779087b214bd7a72b before da5a55e034c74a42485358cf704e75467a62696e; before a210635b6d8f7b94453914d6798a83b41964e7ea; before 830b1550de303dd59c29a87c28e44fa41112b8f4; before 05ffea9775e75d7890c833bff3d2e9682072c736; before fd8441a97cdd212098aeb214b2a5b2caaf108e3c

## References

- <https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=46525> (report)
- <https://bugreports.qt.io/browse/QTBUG-102484> (report)
- <https://codereview.qt-project.org/c/qt/qtbase/+/406260> (fix)
- <https://codereview.qt-project.org/c/qt/qtbase/+/406261> (fix)
- <https://codereview.qt-project.org/c/qt/qtbase/+/405857> (fix)

## Sources

- OSS-Fuzz: [OSV-2022-327](https://osv.dev/vulnerability/OSV-2022-327), CC-BY-4.0, modified 2022-04-27

---

Page: https://cve.day/OSV-2022-327 · Whole record: https://cve.day/OSV-2022-327.json · Rebuilt by cve.day 2026-11-25T22:56:18.830Z
