Bug 1221975 (CVE-2021-47147)

Summary: VUL-0: CVE-2021-47147: kernel: ptp: ocp: Fix a resource leak in an error handling path
Product: [Novell Products] SUSE Security Incidents Reporter: SMASH SMASH <smash_bz>
Component: IncidentsAssignee: Security Team bot <security-team>
Status: RESOLVED FIXED QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P3 - Medium CC: gabriel.bertazi, gabriele.sonnu
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/398794/
Whiteboard: CVSSv3.1:SUSE:CVE-2021-47147:5.5:(AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description SMASH SMASH 2024-03-26 10:49:25 UTC
In the Linux kernel, the following vulnerability has been resolved:

ptp: ocp: Fix a resource leak in an error handling path

If an error occurs after a successful 'pci_ioremap_bar()' call, it must be
undone by a corresponding 'pci_iounmap()' call, as already done in the
remove function.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-47147
https://www.cve.org/CVERecord?id=CVE-2021-47147
https://git.kernel.org/stable/c/0e38e702f1152479e6afac34f151dbfd99417f99
https://git.kernel.org/stable/c/9c1bb37f8cad5e2ee1933fa1da9a6baa7876a8e4
https://bugzilla.redhat.com/show_bug.cgi?id=2271496
Comment 1 Gabriele Sonnu 2024-03-26 10:57:59 UTC
Offending commit (a7e1abad13f3) found in:
 - ALP-current
 - cve/linux-5.14-LTSS
 - SLE15-SP4-LTSS
 - SLE15-SP5
 - SLE15-SP6
 - stable

Fixing commit (9c1bb37f8cad) found in:
 - ALP-current
 - cve/linux-5.14-LTSS
 - SLE15-SP4-LTSS
 - SLE15-SP5
 - SLE15-SP6
 - stable

All branches fixed. @kernel-team, please add the CVE reference.
Comment 2 Gabriel Krisman Bertazi 2024-04-26 23:12:32 UTC
All refs added. back to the security team.
Comment 3 Gabriele Sonnu 2024-06-12 11:56:23 UTC
All done, closing.