{"id":"CVE-2025-71136","state":"PUBLISHED","title":"media: adv7842: Avoid possible out-of-bounds array accesses in adv7842_cp_log_status()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: adv7842: Avoid possible out-of-bounds array accesses in adv7842_cp_log_status()\n\nIt's possible for cp_read() and hdmi_read() to return -EIO. Those\nvalues are further used as indexes for accessing arrays.\n\nFix that by checking return values where it's needed.\n\nFound by Linux Verification Center (linuxtesting.org) with SVACE.","publishedAt":"2026-01-14T15:07:50.568Z","updatedAt":"2026-08-05T12:12:18.759Z","severity":{"score":7.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a89bcd4c6c2023615a89001b5a11b0bb77eb9491","status":"affected","lessThan":"f81ee181cb036d046340c213091b69d9a8701a76","versionType":"git"},{"version":"a89bcd4c6c2023615a89001b5a11b0bb77eb9491","status":"affected","lessThan":"f913b9a2ccd6114b206b9e91dae5e3dc13a415a0","versionType":"git"},{"version":"a89bcd4c6c2023615a89001b5a11b0bb77eb9491","status":"affected","lessThan":"d6a22a4a96e4dfe6897cb3532d2b3016d87706f0","versionType":"git"},{"version":"a89bcd4c6c2023615a89001b5a11b0bb77eb9491","status":"affected","lessThan":"a73881ae085db5702d8b13e2fc9f78d51c723d3f","versionType":"git"},{"version":"a89bcd4c6c2023615a89001b5a11b0bb77eb9491","status":"affected","lessThan":"60dde0960e3ead8a9569f6c494d90d0232ac0983","versionType":"git"},{"version":"a89bcd4c6c2023615a89001b5a11b0bb77eb9491","status":"affected","lessThan":"b693d48a6ed0cd09171103ad418e4a693203d6e4","versionType":"git"},{"version":"a89bcd4c6c2023615a89001b5a11b0bb77eb9491","status":"affected","lessThan":"8163419e3e05d71dcfa8fb49c8fdf8d76908fe51","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/i2c/adv7842.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.12","versionType":"semver"},{"version":"5.10.248","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.198","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.160","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.120","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.64","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.4","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/i2c/adv7842.c"]}],"references":["https://git.kernel.org/stable/c/f81ee181cb036d046340c213091b69d9a8701a76","https://git.kernel.org/stable/c/f913b9a2ccd6114b206b9e91dae5e3dc13a415a0","https://git.kernel.org/stable/c/d6a22a4a96e4dfe6897cb3532d2b3016d87706f0","https://git.kernel.org/stable/c/a73881ae085db5702d8b13e2fc9f78d51c723d3f","https://git.kernel.org/stable/c/60dde0960e3ead8a9569f6c494d90d0232ac0983","https://git.kernel.org/stable/c/b693d48a6ed0cd09171103ad418e4a693203d6e4","https://git.kernel.org/stable/c/8163419e3e05d71dcfa8fb49c8fdf8d76908fe51"],"weaknesses":[],"ingestedAt":"2026-10-29T20:10:04.440Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/71xxx/CVE-2025-71136.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-71136","state":"PUBLISHED","datePublished":"2026-01-14T15:07:50.568Z","dateUpdated":"2026-08-05T12:12:18.759Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-01-13T15:30:19.656Z"},"containers":{"cna":{"title":"media: adv7842: Avoid possible out-of-bounds array accesses in adv7842_cp_log_status()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: adv7842: Avoid possible out-of-bounds array accesses in adv7842_cp_log_status()\n\nIt's possible for cp_read() and hdmi_read() to return -EIO. Those\nvalues are further used as indexes for accessing arrays.\n\nFix that by checking return values where it's needed.\n\nFound by Linux Verification Center (linuxtesting.org) with SVACE."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a89bcd4c6c2023615a89001b5a11b0bb77eb9491","status":"affected","lessThan":"f81ee181cb036d046340c213091b69d9a8701a76","versionType":"git"},{"version":"a89bcd4c6c2023615a89001b5a11b0bb77eb9491","status":"affected","lessThan":"f913b9a2ccd6114b206b9e91dae5e3dc13a415a0","versionType":"git"},{"version":"a89bcd4c6c2023615a89001b5a11b0bb77eb9491","status":"affected","lessThan":"d6a22a4a96e4dfe6897cb3532d2b3016d87706f0","versionType":"git"},{"version":"a89bcd4c6c2023615a89001b5a11b0bb77eb9491","status":"affected","lessThan":"a73881ae085db5702d8b13e2fc9f78d51c723d3f","versionType":"git"},{"version":"a89bcd4c6c2023615a89001b5a11b0bb77eb9491","status":"affected","lessThan":"60dde0960e3ead8a9569f6c494d90d0232ac0983","versionType":"git"},{"version":"a89bcd4c6c2023615a89001b5a11b0bb77eb9491","status":"affected","lessThan":"b693d48a6ed0cd09171103ad418e4a693203d6e4","versionType":"git"},{"version":"a89bcd4c6c2023615a89001b5a11b0bb77eb9491","status":"affected","lessThan":"8163419e3e05d71dcfa8fb49c8fdf8d76908fe51","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/i2c/adv7842.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.12","versionType":"semver"},{"version":"5.10.248","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.198","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.160","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.120","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.64","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.4","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/i2c/adv7842.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/f81ee181cb036d046340c213091b69d9a8701a76"},{"url":"https://git.kernel.org/stable/c/f913b9a2ccd6114b206b9e91dae5e3dc13a415a0"},{"url":"https://git.kernel.org/stable/c/d6a22a4a96e4dfe6897cb3532d2b3016d87706f0"},{"url":"https://git.kernel.org/stable/c/a73881ae085db5702d8b13e2fc9f78d51c723d3f"},{"url":"https://git.kernel.org/stable/c/60dde0960e3ead8a9569f6c494d90d0232ac0983"},{"url":"https://git.kernel.org/stable/c/b693d48a6ed0cd09171103ad418e4a693203d6e4"},{"url":"https://git.kernel.org/stable/c/8163419e3e05d71dcfa8fb49c8fdf8d76908fe51"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","baseScore":7.1,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - A local attacker reaches the flaw through VIDIOC_LOG_STATUS on the Cobalt /dev/video or exposed V4L2 subdevice node, which forwards directly to adv7842_cp_log_status(). An HDMI source cannot independently invoke this callback.\nAC:L - Once an I2C read returns -EIO, shifting the result produces index -1 and one status ioctl deterministically triggers the under-read. The ioctl can be repeated during transient or persistent bus faults, with no race or heap grooming required.\nPR:L - The ioctl path contains no capability or administrative privilege check. An unprivileged user or service with ordinary video-device access can invoke it.\nUI:N - The attacker directly issues the ioctl and does not require another user to open media, approve a request, or perform any other action.\nS:U - The vulnerable driver and the affected kernel memory belong to the same host security authority. No guest-host, IOMMU, or other scope boundary is crossed.\nC:H - The index under-read obtains a pointer-sized value preceding a static array, which printk then follows as a string pointer until a NUL byte. This is not a strictly bounded small read and can expose kernel memory through the log.\nI:N - The vulnerable operations only read outside static pointer arrays and pass the resulting values to logging code. They provide no memory-write or control-flow modification primitive.\nA:H - If the preceding word is not a valid NUL-terminated kernel pointer, printk's %s handling can fault and cause a kernel oops. Systems configured with panic-on-oops can consequently panic or reboot."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T12:12:18.759Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.12","versionEndExcluding":"5.10.248"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.12","versionEndExcluding":"5.15.198"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.12","versionEndExcluding":"6.1.160"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.12","versionEndExcluding":"6.6.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.12","versionEndExcluding":"6.12.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.12","versionEndExcluding":"6.18.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.12","versionEndExcluding":"6.19"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}