# CVE-2024-53061: media: s5p-jpeg: prevent buffer overflows

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.3
- **CVSS:** 7.3 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: Low; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.36% (percentile 22, 2026-11-28)
- **CWE:** CWE-191
- **Published:** 2024-11-19T17:22:32.189Z
- **Modified:** 2026-08-05T11:43:24.079Z

## Who should check

- Anyone running Linux \>= 6c96dbbc2aa9f5b4aed8792989d69eae22bf77c4, \< c5f6fefcda8fac8f082b6c5bf416567f4e100c51; \>= 6c96dbbc2aa9f5b4aed8792989d69eae22bf77c4, \< e5117f6e7adcf9fd7546cdd0edc9abe4474bc98b; \>= 6c96dbbc2aa9f5b4aed8792989d69eae22bf77c4, \< f54e8e1e39dacccebcfb9a9a36f0552a0a97e2ef; \>= 6c96dbbc2aa9f5b4aed8792989d69eae22bf77c4, \< a930cddfd153b5d4401df0c01effa14c831ff21e; \>= 6c96dbbc2aa9f5b4aed8792989d69eae22bf77c4, \< c85db2d4432de4ff9d97006691ce2dcb5bda660e; \>= 6c96dbbc2aa9f5b4aed8792989d69eae22bf77c4, \< 784bc785a453eb2f8433dd62075befdfa1b2d6fd; \>= 6c96dbbc2aa9f5b4aed8792989d69eae22bf77c4, \< c951a0859fdacf49a2298b5551a7e52b95ff6f51; \>= 6c96dbbc2aa9f5b4aed8792989d69eae22bf77c4, \< 14a22762c3daeac59a5a534e124acbb4d7a79b3a
- Anyone running Linux 4.4

## Description

In the Linux kernel, the following vulnerability has been resolved:

media: s5p-jpeg: prevent buffer overflows

The current logic allows word to be less than 2. If this happens,
there will be buffer overflows, as reported by smatch. Add extra
checks to prevent it.

While here, remove an unused word = 0 assignment.

## Affected and fixed versions

- Linux: \>= 6c96dbbc2aa9f5b4aed8792989d69eae22bf77c4, \< c5f6fefcda8fac8f082b6c5bf416567f4e100c51; \>= 6c96dbbc2aa9f5b4aed8792989d69eae22bf77c4, \< e5117f6e7adcf9fd7546cdd0edc9abe4474bc98b; \>= 6c96dbbc2aa9f5b4aed8792989d69eae22bf77c4, \< f54e8e1e39dacccebcfb9a9a36f0552a0a97e2ef; \>= 6c96dbbc2aa9f5b4aed8792989d69eae22bf77c4, \< a930cddfd153b5d4401df0c01effa14c831ff21e; \>= 6c96dbbc2aa9f5b4aed8792989d69eae22bf77c4, \< c85db2d4432de4ff9d97006691ce2dcb5bda660e; \>= 6c96dbbc2aa9f5b4aed8792989d69eae22bf77c4, \< 784bc785a453eb2f8433dd62075befdfa1b2d6fd; \>= 6c96dbbc2aa9f5b4aed8792989d69eae22bf77c4, \< c951a0859fdacf49a2298b5551a7e52b95ff6f51; \>= 6c96dbbc2aa9f5b4aed8792989d69eae22bf77c4, \< 14a22762c3daeac59a5a534e124acbb4d7a79b3a (cvelist)
- Linux: 4.4 (cvelist)

## Mitigation

- Upgrade Linux to 14a22762c3daeac59a5a534e124acbb4d7a79b3a or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-53061. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-53061.md
Affected: Linux >= 6c96dbbc2aa9f5b4aed8792989d69eae22bf77c4, < c5f6fefcda8fac8f082b6c5bf416567f4e100c51; >= 6c96dbbc2aa9f5b4aed8792989d69eae22bf77c4, < e5117f6e7adcf9fd7546cdd0edc9abe4474bc98b; >= 6c96dbbc2aa9f5b4aed8792989d69eae22bf77c4, < f54e8e1e39dacccebcfb9a9a36f0552a0a97e2ef; >= 6c96dbbc2aa9f5b4aed8792…
Fixed in: Linux 784bc785a453eb2f8433dd62075befdfa1b2d6fd, Linux 14a22762c3daeac59a5a534e124acbb4d7a79b3a

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-53061 being exploited?

There is no confirmed exploitation: CVE-2024-53061 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.36% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2024-53061?

High: CVSS 7.3 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-53061?

Linux \>= 6c96dbbc2aa9f5b4aed8792989d69eae22bf77c4, \< c5f6fefcda8fac8f082b6c5bf416567f4e100c51; \>= 6c96dbbc2aa9f5b4aed8792989d69eae22bf77c4, \< e5117f6e7adcf9fd7546cdd0edc9abe4474bc98b; \>= 6c96dbbc2aa9f5b4aed8792989d69eae22bf77c4, \< f54e8e1e39dacccebcfb9a9a36f0552a0a97e2ef; \>= 6c96dbbc2aa9f5b4aed8792989d69eae22bf77c4, \< a930cddfd153b5d4401df0c01effa14c831ff21e; \>= 6c96dbbc2aa9f5b4aed8792989d69eae22bf77c4, \< c85db2d4432de4ff9d97006691ce2dcb5bda660e; \>= 6c96dbbc2aa9f5b4aed8792989d69eae22bf77c4, \< 784bc785a453eb2f8433dd62075befdfa1b2d6fd; \>= 6c96dbbc2aa9f5b4aed8792989d69eae22bf77c4, \< c951a0859fdacf49a2298b5551a7e52b95ff6f51; \>= 6c96dbbc2aa9f5b4aed8792989d69eae22bf77c4, \< 14a22762c3daeac59a5a534e124acbb4d7a79b3a; Linux 4.4.

### Is there a fix for CVE-2024-53061?

Yes. Fixed in Linux 784bc785a453eb2f8433dd62075befdfa1b2d6fd, Linux 14a22762c3daeac59a5a534e124acbb4d7a79b3a. Upgrade Linux to 14a22762c3daeac59a5a534e124acbb4d7a79b3a or later.

### How do I check if I'm affected by CVE-2024-53061?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/c5f6fefcda8fac8f082b6c5bf416567f4e100c51>
- patch: <https://git.kernel.org/stable/c/e5117f6e7adcf9fd7546cdd0edc9abe4474bc98b>
- patch: <https://git.kernel.org/stable/c/f54e8e1e39dacccebcfb9a9a36f0552a0a97e2ef>
- patch: <https://git.kernel.org/stable/c/a930cddfd153b5d4401df0c01effa14c831ff21e>
- patch: <https://git.kernel.org/stable/c/c85db2d4432de4ff9d97006691ce2dcb5bda660e>
- patch: <https://git.kernel.org/stable/c/784bc785a453eb2f8433dd62075befdfa1b2d6fd>
- patch: <https://git.kernel.org/stable/c/c951a0859fdacf49a2298b5551a7e52b95ff6f51>
- patch: <https://git.kernel.org/stable/c/14a22762c3daeac59a5a534e124acbb4d7a79b3a>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-53061>

HTML: <https://flawdb.com/CVE-2024-53061> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-53061>
