Bug 2124470 (CVE-2022-39842) - CVE-2022-39842 Kernel: A type conflict of size_t versus int cause an integer overflow in pxa3xx_gcu_write
Summary: CVE-2022-39842 Kernel: A type conflict of size_t versus int cause an integer ...
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2022-39842
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 2124462
TreeView+ depends on / blocked
 
Reported: 2022-09-06 09:14 UTC by Rohit Keshri
Modified: 2023-03-14 18:36 UTC (History)
52 users (show)

Fixed In Version: kernel 5.19 rc4
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-25 00:54:40 UTC
Embargoed:


Attachments (Terms of Use)

Description Rohit Keshri 2022-09-06 09:14:32 UTC
An issue was discovered in the Linux kernel before 5.19. In pxa3xx_gcu_write in drivers/video/fbdev/pxa3xx-gcu.c, the count parameter has a type conflict of size_t versus int, causing an integer overflow and bypassing the size check. After that, because it is used as the third argument to copy_from_user(), a heap overflow may occur.

Reference:
https://github.com/torvalds/linux/commit/a09d2d00af53b43c6f11e6ab3cb58443c2cac8a7

Comment 2 Rohit Keshri 2022-09-06 09:21:23 UTC
There was no shipped kernel version that was seen affected by this problem. These files are not built in our source code.

Comment 4 Product Security DevOps Team 2022-11-25 00:54:36 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2022-39842


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