Bug 2298113 (CVE-2022-48777) - CVE-2022-48777 kernel: mtd: parsers: qcom: Fix kernel panic on skipped partition
Summary: CVE-2022-48777 kernel: mtd: parsers: qcom: Fix kernel panic on skipped partition
Keywords:
Status: NEW
Alias: CVE-2022-48777
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-16 12:22 UTC by OSIDB Bzimport
Modified: 2024-07-31 05:48 UTC (History)
4 users (show)

Fixed In Version: kernel 5.15.25, kernel 5.16.11, kernel 5.17
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-07-16 12:22:52 UTC
In the Linux kernel, the following vulnerability has been resolved:

mtd: parsers: qcom: Fix kernel panic on skipped partition

In the event of a skipped partition (case when the entry name is empty)
the kernel panics in the cleanup function as the name entry is NULL.
Rework the parser logic by first checking the real partition number and
then allocate the space and set the data for the valid partitions.

The logic was also fundamentally wrong as with a skipped partition, the
parts number returned was incorrect by not decreasing it for the skipped
partitions.


Note You need to log in before you can comment on or make changes to this bug.