Skip to content
Heist/ feed
Back to feed
HighFix available

media: av7110: prevent underflow in write_ts_to_decoder()

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: media: av7110: prevent underflow in write_ts_to_decoder() The buf[4] value comes from the user via ts_play(). It is a value in the u8 range. The final length we pass to av7110_ipack_instant_repack() is "len - (buf[4] + 1) - 4" so add a check to ensure that the length is not negative. It's not clear that passing a negative len value does anything bad necessarily, but it's not best practice. With the new bounds checking the "if (!len)" condition is no longer possible or required so remove that.

Products
Kernel
Affected versions
Not specified
Fixed versions
4.14.315, 4.19.283, 5.10.211, 5.15.111, 5.4.243, 6.1.28, 6.2.15, 6.3.2
CVEs
CVE-2023-54284
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 17:08 UTC · Revision 1

Source evidence

media: av7110: prevent underflow in write_ts_to_decoder()

core-osv · Original source

Published 30 Dec 2025, 12:23 UTC

In the Linux kernel, the following vulnerability has been resolved: media: av7110: prevent underflow in write_ts_to_decoder() The buf[4] value comes from the user via ts_play(). It is a value in the u8 range. The final length we pass to av7110_ipack_instant_repack() is "len - (buf[4] + 1) - 4" so add a check to ensure that the length is not negative. It's not clear that passing a negative len value does anything bad necessarily, but it's not best practice. With the new bounds checking the "if (!len)" condition is no longer possible or required so remove that.

osv:CVE-2023-54284

Kernel

Fixed versions: 4.14.315, 4.19.283, 5.4.243, 5.10.211, 5.15.111, 6.1.28, 6.2.15, 6.3.2

Complete source record
{
  "id": "ea0b41747129e5d2fb087a5daa67adcabb5f6d0b3d9fb841f34f1339eb77f36f",
  "url": "https://osv.dev/vulnerability/CVE-2023-54284",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "media: av7110: prevent underflow in write_ts_to_decoder()",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: media: av7110: prevent underflow in write_ts_to_decoder() The buf[4] value comes from the user via ts_play(). It is a value in the u8 range. The final length we pass to av7110_ipack_instant_repack() is \"len - (buf[4] + 1) - 4\" so add a check to ensure that the length is not negative. It's not clear that passing a negative len value does anything bad necessarily, but it's not best practice. With the new bounds checking the \"if (!len)\" condition is no longer possible or required so remove that.",
    "evidence": "osv:CVE-2023-54284",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.14.315",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "4.19.283",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.4.243",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.211",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.111",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.28",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.2.15",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.3.2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2023-54284",
      "aliases": [
        "CVE-2023-54284"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "fd46d16d602ab7fd53cef7ff55b9dcb0b47ad3bf"
                },
                {
                  "fixed": "6680af5be9f08d830567e9118f76d3e64684db8f"
                },
                {
                  "fixed": "6606e2404ee9e20a3ae5b42fc3660d41b739ed3e"
                },
                {
                  "fixed": "620b983589e0223876bf1463b01100a9c67b56ba"
                },
                {
                  "fixed": "86ba65e5357bfbb6c082f68b265a292ee1bdde1d"
                },
                {
                  "fixed": "ca4ce92e3ec9fd3c7c936b912b95c53331d5159c"
                },
                {
                  "fixed": "423350af9e27f005611bd881b1df2cab66de943d"
                },
                {
                  "fixed": "77eeb4732135c18c2fdfab80839645b393f3e774"
                },
                {
                  "fixed": "7b93ab60fe9ed04be0ff155bc30ad39dea23e22b"
                },
                {
                  "fixed": "eed9496a0501357aa326ddd6b71408189ed872eb"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54284.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "2.6.31"
                },
                {
                  "fixed": "4.14.315"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.15.0"
                },
                {
                  "fixed": "4.19.283"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.20.0"
                },
                {
                  "fixed": "5.4.243"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.211"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.111"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.28"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.2.15"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.3.0"
                },
                {
                  "fixed": "6.3.2"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54284.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:51.122180057Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/423350af9e27f005611bd881b1df2cab66de943d",
        "https://git.kernel.org/stable/c/620b983589e0223876bf1463b01100a9c67b56ba",
        "https://git.kernel.org/stable/c/6606e2404ee9e20a3ae5b42fc3660d41b739ed3e",
        "https://git.kernel.org/stable/c/6680af5be9f08d830567e9118f76d3e64684db8f",
        "https://git.kernel.org/stable/c/77eeb4732135c18c2fdfab80839645b393f3e774",
        "https://git.kernel.org/stable/c/7b93ab60fe9ed04be0ff155bc30ad39dea23e22b",
        "https://git.kernel.org/stable/c/86ba65e5357bfbb6c082f68b265a292ee1bdde1d",
        "https://git.kernel.org/stable/c/ca4ce92e3ec9fd3c7c936b912b95c53331d5159c",
        "https://git.kernel.org/stable/c/eed9496a0501357aa326ddd6b71408189ed872eb",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54284.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-54284",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54284.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-54284",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 519946,
  "published_at": "2025-12-30T12:23:25.116+00:00"
}