Bug 2348336 (CVE-2022-49449)

Summary: CVE-2022-49449 kernel: pinctrl: renesas: rzn1: Fix possible null-ptr-deref in sh_pfc_map_resources()
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dfreiber, drow, jburrell, vkumar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2025-02-26 03:25:54 UTC
In the Linux kernel, the following vulnerability has been resolved:

pinctrl: renesas: rzn1: Fix possible null-ptr-deref in sh_pfc_map_resources()

It will cause null-ptr-deref when using 'res', if platform_get_resource()
returns NULL, so move using 'res' after devm_ioremap_resource() that
will check it to avoid null-ptr-deref.
And use devm_platform_get_and_ioremap_resource() to simplify code.

Comment 1 Avinash Hanwate 2025-02-26 08:15:22 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022659-CVE-2022-49449-bf9c@gregkh/T

Comment 4 Avinash Hanwate 2025-02-26 08:58:06 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022659-CVE-2022-49449-bf9c@gregkh/T

Comment 8 Avinash Hanwate 2025-02-26 09:53:56 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022659-CVE-2022-49449-bf9c@gregkh/T