{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "acb05993881005cdaf5f8291491b4edcb8f60ef3"
            },
            {
              "fixed": "fd72f1b3b57d0591127e2e9a45018705fd4618ec"
            },
            {
              "fixed": "c027b3048ffccc1d3b92afc9f5b45f52e6d16c00"
            },
            {
              "fixed": "0dc2bca7fa4141b965f028f0d4b69b7eaa5577bd"
            },
            {
              "fixed": "19fbb9e447e39bd877901425ab66cb5d43d2366d"
            },
            {
              "fixed": "9abc067fc83711ac417359df3cf613cbe3b0ab77"
            },
            {
              "fixed": "4bc8cef2303f0a3097ddbf30e037e9b93a2be4b3"
            },
            {
              "fixed": "dcdfd7ae6ad12886fbdf8027304a8b38e0a32749"
            },
            {
              "fixed": "b3e7ddd694f8429217ba509b55b910a0e4361dfb"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "2.6.29"
            },
            {
              "fixed": "5.10.275"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.11.0"
            },
            {
              "fixed": "5.15.226"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.1.193"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.118"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.63"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138877.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: hda/hdmi: clamp sad_count in ELD proc write handler\n\nsnd_hdmi_write_eld_info() parses a \"sad_count N\" line from the\nroot-writable ELD proc interface and assigns N directly to\ne-\u003esad_count with no upper bound, unlike the per-index \"sadN_*\" lines\na few lines below which are already bounded to ELD_MAX_SAD.\n\nsnd_hdmi_eld_update_pcm_info() later iterates\n\"for (i = 0; i \u003c e-\u003esad_count; i++)\" over the fixed\ne-\u003esad[ELD_MAX_SAD] array, so an oversized sad_count read from the\nproc file causes it to walk past the array.\n\nReject sad_count values above ELD_MAX_SAD, matching the existing\nper-index guard.",
  "id": "CVE-2026-138877",
  "modified": "2026-12-01T20:45:52.717405671Z",
  "published": "2026-11-30T13:25:49.342Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/0dc2bca7fa4141b965f028f0d4b69b7eaa5577bd"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/19fbb9e447e39bd877901425ab66cb5d43d2366d"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/4bc8cef2303f0a3097ddbf30e037e9b93a2be4b3"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/9abc067fc83711ac417359df3cf613cbe3b0ab77"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b3e7ddd694f8429217ba509b55b910a0e4361dfb"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c027b3048ffccc1d3b92afc9f5b45f52e6d16c00"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/dcdfd7ae6ad12886fbdf8027304a8b38e0a32749"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/fd72f1b3b57d0591127e2e9a45018705fd4618ec"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138877.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-138877"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "ALSA: hda/hdmi: clamp sad_count in ELD proc write handler"
}