# CVE-2026-89879: media: s2255: bound JPEG frame size before copying into the buffer

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **Published:** 2026-09-16T10:31:45.564Z
- **Modified:** 2026-10-19T09:18:32.730Z

## Who should check

- Anyone running Linux \>= 38f993ad8b1fe4caf9e989caf6e2a25aff3bbaf7, \< 32a595dd3e8634544e5cfbc47f906dff3d3c1ef8; \>= 38f993ad8b1fe4caf9e989caf6e2a25aff3bbaf7, \< 4b6f7bccc6559ae5c54573c284fe76eafc9989b2; \>= 38f993ad8b1fe4caf9e989caf6e2a25aff3bbaf7, \< 2542516a147bfad740e7e411c251b639fad260ff; \>= 38f993ad8b1fe4caf9e989caf6e2a25aff3bbaf7, \< 79f58f900dd221ab04ea74bf4eaf79fa3b0fcc77; \>= 38f993ad8b1fe4caf9e989caf6e2a25aff3bbaf7, \< d2ecaaab6a4f165abb54cdf61be60030b5782bf8; \>= 38f993ad8b1fe4caf9e989caf6e2a25aff3bbaf7, \< 68d664f1b4efe525e99154b7058fcb0378bdaff7; \>= 38f993ad8b1fe4caf9e989caf6e2a25aff3bbaf7, \< dd739517560c8d0ec4463a53e717bf40b988d7da; \>= 38f993ad8b1fe4caf9e989caf6e2a25aff3bbaf7, \< e504cc888f42999dd76b6a43788c422610f2aad2
- Anyone running Linux 2.6.27

## Description

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

media: s2255: bound JPEG frame size before copying into the buffer

s2255\_fillbuff() memcpy()s vc-\>jpg\_size bytes of a captured JPEG/MJPEG
frame into the vb2 plane.  vc-\>jpg\_size is taken verbatim from the
S2255\_MARKER\_FRAME header the device sends (pdword\[4\] in save\_frame())
and, unlike the frame payload length just above it, is never bounded:

	payload = le32\_to\_cpu(pdword\[3\]);
	if (payload \> vc-\>req\_image\_size)	/\* payload is checked ... \*/
		return -EINVAL;
	vc-\>pkt\_size = payload;
	vc-\>jpg\_size = le32\_to\_cpu(pdword\[4\]);	/\* ... jpg\_size is not \*/

A malicious or malfunctioning device can therefore report a jpg\_size
larger than the destination vb2 plane, and the memcpy() writes past it.
jpg\_size is a signed int, so a value with the top bit set also turns
into a huge length.

Reject a frame whose jpg\_size is negative or exceeds the plane size
before copying it.

## Affected and fixed versions

- Linux: \>= 38f993ad8b1fe4caf9e989caf6e2a25aff3bbaf7, \< 32a595dd3e8634544e5cfbc47f906dff3d3c1ef8; \>= 38f993ad8b1fe4caf9e989caf6e2a25aff3bbaf7, \< 4b6f7bccc6559ae5c54573c284fe76eafc9989b2; \>= 38f993ad8b1fe4caf9e989caf6e2a25aff3bbaf7, \< 2542516a147bfad740e7e411c251b639fad260ff; \>= 38f993ad8b1fe4caf9e989caf6e2a25aff3bbaf7, \< 79f58f900dd221ab04ea74bf4eaf79fa3b0fcc77; \>= 38f993ad8b1fe4caf9e989caf6e2a25aff3bbaf7, \< d2ecaaab6a4f165abb54cdf61be60030b5782bf8; \>= 38f993ad8b1fe4caf9e989caf6e2a25aff3bbaf7, \< 68d664f1b4efe525e99154b7058fcb0378bdaff7; \>= 38f993ad8b1fe4caf9e989caf6e2a25aff3bbaf7, \< dd739517560c8d0ec4463a53e717bf40b988d7da; \>= 38f993ad8b1fe4caf9e989caf6e2a25aff3bbaf7, \< e504cc888f42999dd76b6a43788c422610f2aad2 (cvelist)
- Linux: 2.6.27 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-89879.md
Affected: Linux >= 38f993ad8b1fe4caf9e989caf6e2a25aff3bbaf7, < 32a595dd3e8634544e5cfbc47f906dff3d3c1ef8; >= 38f993ad8b1fe4caf9e989caf6e2a25aff3bbaf7, < 4b6f7bccc6559ae5c54573c284fe76eafc9989b2; >= 38f993ad8b1fe4caf9e989caf6e2a25aff3bbaf7, < 2542516a147bfad740e7e411c251b639fad260ff; >= 38f993ad8b1fe4caf9e989c…
Fixed in: Linux 32a595dd3e8634544e5cfbc47f906dff3d3c1ef8, Linux 4b6f7bccc6559ae5c54573c284fe76eafc9989b2, Linux 2542516a147bfad740e7e411c251b639fad260ff, Linux 79f58f900dd221ab04ea74bf4eaf79fa3b0fcc77, Linux 68d664f1b4efe525e99154b7058fcb0378bdaff7

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-2026-89879 being exploited?

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

### How serious is CVE-2026-89879?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-89879?

Linux \>= 38f993ad8b1fe4caf9e989caf6e2a25aff3bbaf7, \< 32a595dd3e8634544e5cfbc47f906dff3d3c1ef8; \>= 38f993ad8b1fe4caf9e989caf6e2a25aff3bbaf7, \< 4b6f7bccc6559ae5c54573c284fe76eafc9989b2; \>= 38f993ad8b1fe4caf9e989caf6e2a25aff3bbaf7, \< 2542516a147bfad740e7e411c251b639fad260ff; \>= 38f993ad8b1fe4caf9e989caf6e2a25aff3bbaf7, \< 79f58f900dd221ab04ea74bf4eaf79fa3b0fcc77; \>= 38f993ad8b1fe4caf9e989caf6e2a25aff3bbaf7, \< d2ecaaab6a4f165abb54cdf61be60030b5782bf8; \>= 38f993ad8b1fe4caf9e989caf6e2a25aff3bbaf7, \< 68d664f1b4efe525e99154b7058fcb0378bdaff7; \>= 38f993ad8b1fe4caf9e989caf6e2a25aff3bbaf7, \< dd739517560c8d0ec4463a53e717bf40b988d7da; \>= 38f993ad8b1fe4caf9e989caf6e2a25aff3bbaf7, \< e504cc888f42999dd76b6a43788c422610f2aad2; Linux 2.6.27.

### Is there a fix for CVE-2026-89879?

Yes. Fixed in Linux 32a595dd3e8634544e5cfbc47f906dff3d3c1ef8, Linux 4b6f7bccc6559ae5c54573c284fe76eafc9989b2, Linux 2542516a147bfad740e7e411c251b639fad260ff, Linux 79f58f900dd221ab04ea74bf4eaf79fa3b0fcc77, Linux 68d664f1b4efe525e99154b7058fcb0378bdaff7. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-89879?

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

- other: <https://git.kernel.org/stable/c/32a595dd3e8634544e5cfbc47f906dff3d3c1ef8>
- other: <https://git.kernel.org/stable/c/4b6f7bccc6559ae5c54573c284fe76eafc9989b2>
- other: <https://git.kernel.org/stable/c/2542516a147bfad740e7e411c251b639fad260ff>
- other: <https://git.kernel.org/stable/c/79f58f900dd221ab04ea74bf4eaf79fa3b0fcc77>
- other: <https://git.kernel.org/stable/c/d2ecaaab6a4f165abb54cdf61be60030b5782bf8>
- other: <https://git.kernel.org/stable/c/68d664f1b4efe525e99154b7058fcb0378bdaff7>
- other: <https://git.kernel.org/stable/c/dd739517560c8d0ec4463a53e717bf40b988d7da>
- other: <https://git.kernel.org/stable/c/e504cc888f42999dd76b6a43788c422610f2aad2>

## 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-2026-89879>

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