Skip to contentSkip to conversation

CVE-2022-49510: drm/omap: fix NULL but dereferenced coccicheck error

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Feb 26, 2025

lore
Share & tools
lore
#0 lore raw

Description
===========

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

drm/omap: fix NULL but dereferenced coccicheck error

Fix the following coccicheck warning:
./drivers/gpu/drm/omapdrm/omap_overlay.c:89:22-25: ERROR: r_ovl is NULL but dereferenced.

Here should be ovl->idx rather than r_ovl->idx.

The Linux kernel CVE team has assigned CVE-2022-49510 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.17 with commit e02b5cc9e898ad6f223a69df63397beae60390ff and fixed in 5.17.14 with commit d2507be660310bb9bcca918f81f49b8bba07e462
	Issue introduced in 5.17 with commit e02b5cc9e898ad6f223a69df63397beae60390ff and fixed in 5.18.3 with commit 08d9a75eab594ca508a440db7c73064498d26687
	Issue introduced in 5.17 with commit e02b5cc9e898ad6f223a69df63397beae60390ff and fixed in 5.19 with commit 8f2a3970c969d0d8d7289a4c65edcedafc16fd92

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2022-49510

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/gpu/drm/omapdrm/omap_overlay.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/d2507be660310bb9bcca918f81f49b8bba07e462
	https://git.kernel.org/stable/c/08d9a75eab594ca508a440db7c73064498d26687
	https://git.kernel.org/stable/c/8f2a3970c969d0d8d7289a4c65edcedafc16fd92