Bug 2123310 (CVE-2022-3078)

Summary: CVE-2022-3078 kernel: NULL pointer dereference in drivers/media/test-drivers/vidtv/vidtv_s302m.c
Product: [Other] Security Response Reporter: Alex <allarkin>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: acaringi, adscvr, airlied, alciregi, bhu, brdeoliv, bskeggs, carnil, chwhite, crwood, ddepaula, debarbos, dhoward, dvlasenk, fhrbata, hdegoede, hkrzesin, hpa, jarod, jarodwilson, jburrell, jfaracco, jferlan, jforbes, jglisse, jlelli, joe.lawrence, jonathan, josef, jshortt, jstancek, jwboyer, jwyatt, kcarcia, kernel-maint, kernel-mgr, lgoncalv, linville, lleshchi, lzampier, masami256, mchehab, nmurray, ptalbert, qzhao, rvrbovsk, scweaver, steved, tyberry, vkumar, walters, williams
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Linux kernel 5.18-rc1 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Linux kernel. There is a lack of check after calling vzalloc() and a lack of free after allocation in drivers/media/test-drivers/vidtv/vidtv_s302m.c.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-01 11:21:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2123312    
Bug Blocks: 2116450    

Description Alex 2022-09-01 11:11:59 UTC
An issue was discovered in the Linux kernel through 5.16-rc6. There is a lack of check after calling vzalloc() and lack of free after
allocation in drivers/media/test-drivers/vidtv/vidtv_s302m.c.

Reference:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v5.19-rc2&id=e6a21a14106d9718aa4f8e115b1e474888eeba44

Comment 1 Alex 2022-09-01 11:12:33 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2123312]

Comment 3 Salvatore Bonaccorso 2022-09-02 04:59:10 UTC
Is the fixed version information correct? The fixing commit seems to be in 5.18-rc1 (and was backported to 5.17.2, 5.16.19, 5.15.33 and 5.10.110).

Comment 4 Alex 2022-09-04 11:28:06 UTC
Thank you, updated to the Linux kernel 5.18-rc1.

Comment 5 Justin M. Forbes 2022-09-20 14:10:39 UTC
These drivers were not enabled for Fedora, but for users building their own kernels, it was fixed in the 5.16.19 stable updates source tree.