Bug 1227935 (CVE-2022-48778) - VUL-0: CVE-2022-48778: kernel: mtd: rawnand: gpmi: don't leak PM reference in error path
Summary: VUL-0: CVE-2022-48778: kernel: mtd: rawnand: gpmi: don't leak PM reference in...
Status: NEW
Alias: CVE-2022-48778
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Kernel Bugs
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/414198/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-16 13:27 UTC by SMASH SMASH
Modified: 2024-07-16 14:15 UTC (History)
1 user (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2024-07-16 13:27:41 UTC
Description
===========

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

mtd: rawnand: gpmi: don't leak PM reference in error path

If gpmi_nfc_apply_timings() fails, the PM runtime usage counter must be
dropped.

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


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

	Issue introduced in 5.4.174 with commit 29218853877a and fixed in 5.4.181 with commit 4cd3281a910a
	Issue introduced in 5.10.94 with commit 538a5e208e7d and fixed in 5.10.102 with commit a4eeeaca5019
	Issue introduced in 5.15.17 with commit 0fe08bf9909f and fixed in 5.15.25 with commit 4a7ec50298b1
	Issue introduced in 5.16.3 with commit c447696e2f82 and fixed in 5.16.11 with commit 58d3111eafce

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-48778
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/mtd/nand/raw/gpmi-nand/gpmi-nand.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/4cd3281a910a5adf73b2a0a82241dd67844d0b25
	https://git.kernel.org/stable/c/a4eeeaca50199e3f19eb13ac3b7e0bbb93e22de4
	https://git.kernel.org/stable/c/4a7ec50298b1127c5024a750c969ea0794899545
	https://git.kernel.org/stable/c/58d3111eafce9e4398654b07f0b1dac27f26ee5b
	https://git.kernel.org/stable/c/9161f365c91614e5a3f5c6dcc44c3b1b33bc59c0

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2022-48778
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2022/CVE-2022-48778.mbox
https://git.kernel.org/stable/c/4cd3281a910a5adf73b2a0a82241dd67844d0b25
https://git.kernel.org/stable/c/a4eeeaca50199e3f19eb13ac3b7e0bbb93e22de4
https://git.kernel.org/stable/c/4a7ec50298b1127c5024a750c969ea0794899545
https://git.kernel.org/stable/c/58d3111eafce9e4398654b07f0b1dac27f26ee5b
https://git.kernel.org/stable/c/9161f365c91614e5a3f5c6dcc44c3b1b33bc59c0