Bug 1225581 (CVE-2023-52857)

Summary: VUL-0: CVE-2023-52857: kernel: drm/mediatek: Fix coverity issue with unintentional integer overflow
Product: [Novell Products] SUSE Security Incidents Reporter: SMASH SMASH <smash_bz>
Component: IncidentsAssignee: Patrik Jakobsson <patrik.jakobsson>
Status: NEW --- QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P3 - Medium CC: gianluca.gabrielli, jlee
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/407205/
Whiteboard: CVSSv3.1:SUSE:CVE-2023-52857: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-05-29 10:34:06 UTC
In the Linux kernel, the following vulnerability has been resolved:

drm/mediatek: Fix coverity issue with unintentional integer overflow

1. Instead of multiplying 2 variable of different types. Change to
assign a value of one variable and then multiply the other variable.

2. Add a int variable for multiplier calculation instead of calculating
different types multiplier with dma_addr_t variable directly.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2023-52857
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2023/CVE-2023-52857.mbox
https://git.kernel.org/stable/c/0d8a1df39d3fc34560e2cc663b5c340d06a25396
https://git.kernel.org/stable/c/96312a251d4dcee5d36e32edba3002bfde0ddd9c
https://git.kernel.org/stable/c/b0b0d811eac6b4c52cb9ad632fa6384cf48869e7
https://www.cve.org/CVERecord?id=CVE-2023-52857
https://bugzilla.redhat.com/show_bug.cgi?id=2282625