Bug 2169474 - kernel: multiple issues in drivers/media/platform/chips-media/coda where lacks check of the return value of kmalloc() can cause the NULL Pointer Dereference
Summary: kernel: multiple issues in drivers/media/platform/chips-media/coda where lack...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2169475
Blocks: 2167953
TreeView+ depends on / blocked
 
Reported: 2023-02-13 17:13 UTC by Alex
Modified: 2026-03-02 08:35 UTC (History)
38 users (show)

Fixed In Version: Linux kernel 6.1-rc8
Clone Of:
Environment:
Last Closed: 2023-02-15 04:41:54 UTC
Embargoed:


Attachments (Terms of Use)

Description Alex 2023-02-13 17:13:18 UTC
An issue was discovered in the Linux kernel through 6.1-rc8.
coda9_jpeg_start_encoding in drivers/media/platform/chips-media/coda-jpeg.c
lacks check of the return value of kmalloc() and will
cause the NULL Pointer Dereference.

Reference:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f30ce3d3760b22ee33c8d9c2e223764ad30bdc5f

Comment 1 Alex 2023-02-13 17:13:43 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2169475]

Comment 3 Alex 2023-02-13 17:16:47 UTC
There is one more very similar issue:

coda_start_encoding in drivers/media/platform/chips-media/coda-bit.c
lacks check of the return value of kmalloc() and will cause the
NULL Pointer Dereference.

Reference:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6e5e5defdb8b0186312c2f855ace175aee6daf9b

Comment 5 Alex 2023-02-13 17:18:46 UTC
There is one more issue for same part of source code:

coda_setup_iram in drivers/media/platform/chips-media/coda-bit.c
lacks check of the return value of coda_iram_alloc() and will cause the
NULL Pointer Dereference.

Reference:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6b8082238fb8bb20f67e46388123e67a5bbc558d

Comment 7 Justin M. Forbes 2023-03-01 19:30:30 UTC
This was fixed for Fedora with the 6.0.16 stable kernel updates.


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