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

Not scored Published

A stack-use-after-return vulnerability in Qt's QSemaphore allows attackers to potentially execute arbitrary code or cause a denial of service via crafted input.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Not stated
Victim action needed
Not needed
Fix
None listed

What is OSV-2022-327?

OSV-2022-327 is an use after free vulnerability in qt, published on 10 Apr 2022.

Official 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

Which versions are affected by OSV-2022-327?

1 open source package ship an affected version, including qt.

PackageAffectedFixed in
qt OSS-FuzzAll versionsNone

How do I fix OSV-2022-327?

No fix has been published for OSV-2022-327 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is OSV-2022-327 being exploited?

There is no known exploitation of OSV-2022-327 in the wild and no public exploit code.

Sources

Is OSV-2022-327 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free