CVE-2023-52850: media: hantro: Check whether reset op is defined before use

Description

In the Linux kernel, the following vulnerability has been resolved:

media: hantro: Check whether reset op is defined before use

The i.MX8MM/N/P does not define the .reset op since reset of the VPU is
done by genpd. Check whether the .reset op is defined before calling it
to avoid NULL pointer dereference.

Note that the Fixes tag is set to the commit which removed the reset op
from i.MX8M Hantro G2 implementation, this is because before this commit
all the implementations did define the .reset op.

Classification

CVE ID: CVE-2023-52850

Affected Products

Vendor: Linux

Product: Linux

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.04% (probability of being exploited)

EPSS Percentile: 5.06% (scored less or equal to compared to others)

EPSS Date: 2025-02-03 (when was this score calculated)

References

https://git.kernel.org/stable/c/64f55cebb4339ae771e9e7f3f42bee2489e2fa00
https://git.kernel.org/stable/c/66b4c5f980d741f3a47e4b65eeaf2797f2d59294
https://git.kernel.org/stable/c/24c06295f28335ced3aad53dd4b0a0bae7b9b100
https://git.kernel.org/stable/c/88d4b23a629ebd34f682f770cb6c2116c851f7b8

Timeline