CVE-2022-50182
published high CVSS 3.1 · 7.8media: imx-jpeg: Align upwards buffer size
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux2db16c6ed72ce644d5639b3ed15e5817442db4ba to < 9ae2d729de6350c53a06c57782751d84eb2c08d9 · 2db16c6ed72ce644d5639b3ed15e5817442db4ba to < 73d1836ed7911953182b787745cb8c5857a2661c · 2db16c6ed72ce644d5639b3ed15e5817442db4ba to < 447795ffb17cd60bb544e0abfc9399e180a14a2f · 2db16c6ed72ce644d5639b3ed15e5817442db4ba to < 9e7aa76cdb02923ee23a0ddd48f38bdc3512f92b · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.13 (affected) · 0 to < 5.13 (unaffected · semver) · 5.15.61 through 5.15.* (unaffected · semver) · 5.18.18 through 5.18.* (unaffected · semver) · 5.19.2 through 5.19.* (unaffected · semver) · 6.0 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: media: imx-jpeg: Align upwards buffer size The hardware can support any image size WxH, with arbitrary W (image width) and H (image height) dimensions. Align upwards buffer size for both encoder and decoder. and leave the picture resolution unchanged. For decoder, the risk of memory out of bounds can be avoided. For both encoder and decoder, the driver will lift the limitation of resolution alignment. For example, the decoder can support jpeg whose resolution is 227x149 the encoder can support nv12 1080P, won't change it to 1920x1072.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerable code is reached via V4L2 ioctls on the imx-jpeg /dev/video* mem2mem device node; an attacker must have local access to open the decoder and queue buffers. AC:L - An attacker can reliably trigger the overflow by submitting a JPEG whose dimensions pass the multiple-of-8 check but require stronger format alignment (e.g. NV12 1920x1080 → h_adjusted 1088), with no race or unpredictable condition. PR:L - Exploitation needs only the ability to open the V4L2 video device (typically root:video 0660); no root/capabilities are required, matching other imx-jpeg ioctl-reachable CVEs scored PR:L. UI:N - The attacker interacts with the decoder device themselves by queuing a crafted JPEG; no separate victim action is required. S:U - Impact is confined to the local kernel/CMA memory of the host; this is standard kernel memory corruption without crossing a VM, IOMMU, or other security authority boundary. C:H - DMA writes attacker-influenced decoded pixel data past the capture buffer into adjacent CMA/kernel memory, which is memory corruption that can be leveraged for information disclosure primitives. I:H - This is a hardware DMA out-of-bounds write of controllable decoded image data past an undersized vb2_dma_contig buffer, enabling adjacent-memory corruption and potential control-flow hijacking. A:H - Writing past the allocated DMA buffer into adjacent memory can cause kernel oops/panic or otherwise disrupt system availability.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 2db16c6ed72ce644d5639b3ed15e5817442db4ba to < 9ae2d729de6350c53a06c57782751d84eb2c08d9 (affected · git)2db16c6ed72ce644d5639b3ed15e5817442db4ba to < 73d1836ed7911953182b787745cb8c5857a2661c (affected · git)2db16c6ed72ce644d5639b3ed15e5817442db4ba to < 447795ffb17cd60bb544e0abfc9399e180a14a2f (affected · git)2db16c6ed72ce644d5639b3ed15e5817442db4ba to < 9e7aa76cdb02923ee23a0ddd48f38bdc3512f92b (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.13 (affected)0 to < 5.13 (unaffected · semver)5.15.61 through 5.15.* (unaffected · semver)5.18.18 through 5.18.* (unaffected · semver)5.19.2 through 5.19.* (unaffected · semver)6.0 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
4Provider assertions
1Linux · cna
media: imx-jpeg: Align upwards buffer size
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 9f854c21c699eac0dd53292b97c12815d1c8d528e2782ca7696c8d7473069c45
- Ingested
- 23 Sep 2026, 08:04:39 UTC
- Source record
- Official CVE record