Skip to content
Heist/ feed
Back to feed
HighFix available

speakup: Fix sizeof() vs ARRAY_SIZE() bug

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: speakup: Fix sizeof() vs ARRAY_SIZE() bug The "buf" pointer is an array of u16 values. This code should be using ARRAY_SIZE() (which is 256) instead of sizeof() (which is 512), otherwise it can the still got out of bounds.

Products
Kernel
Affected versions
Not specified
Fixed versions
4.19.316, 5.10.219, 5.15.161, 5.4.278, 6.1.93, 6.6.33, 6.8.12, 6.9.3
CVEs
CVE-2024-38587
Confirmed fixed CVEs
Not specified
Updated in this feed
6 Nov 2026, 18:36 UTC · Revision 1

Source evidence

speakup: Fix sizeof() vs ARRAY_SIZE() bug

core-osv · Original source

Published 19 Jun 2024, 13:37 UTC

In the Linux kernel, the following vulnerability has been resolved: speakup: Fix sizeof() vs ARRAY_SIZE() bug The "buf" pointer is an array of u16 values. This code should be using ARRAY_SIZE() (which is 256) instead of sizeof() (which is 512), otherwise it can the still got out of bounds.

osv:CVE-2024-38587

Kernel

Fixed versions: 4.19.316, 5.4.278, 5.10.219, 5.15.161, 6.1.93, 6.6.33, 6.8.12, 6.9.3

Complete source record
{
  "id": "d78a5ef663d001cb9f3dd0bf4571d5392f758b8abf8fac7fd0a8f554f55c3ff2",
  "url": "https://osv.dev/vulnerability/CVE-2024-38587",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "speakup: Fix sizeof() vs ARRAY_SIZE() bug",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: speakup: Fix sizeof() vs ARRAY_SIZE() bug The \"buf\" pointer is an array of u16 values. This code should be using ARRAY_SIZE() (which is 256) instead of sizeof() (which is 512), otherwise it can the still got out of bounds.",
    "evidence": "osv:CVE-2024-38587",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.19.316",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.4.278",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.219",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.161",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.93",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.33",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.8.12",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.9.3",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2024-38587",
      "aliases": [
        "CVE-2024-38587"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "756c5cb7c09e537b87b5d3acafcb101b2ccf394f"
                },
                {
                  "fixed": "42f0a3f67158ed6b2908d2b9ffbf7e96d23fd358"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "8f6b62125befe1675446923e4171eac2c012959c"
                },
                {
                  "fixed": "cd7f3978c2ec741aedd1d860b2adb227314cf996"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6401038acfa24cba9c28cce410b7505efadd0222"
                },
                {
                  "fixed": "07ef95cc7a579731198c93beed281e3a79a0e586"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0d130158db29f5e0b3893154908cf618896450a8"
                },
                {
                  "fixed": "504178fb7d9f6cdb0496d5491efb05f45597e535"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "89af25bd4b4bf6a71295f07e07a8ae7dc03c6595"
                },
                {
                  "fixed": "3726f75a1ccc16cd335c0ccfad1d92ee08ecba5e"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "8defb1d22ba0395b81feb963b96e252b097ba76f"
                },
                {
                  "fixed": "c6e1650cf5df1bd6638eeee231a683ef30c7d4eb"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0efb15c14c493263cb3a5f65f5ddfd4603d19a76"
                },
                {
                  "fixed": "eb1ea64328d4cc7d7a912c563f8523d5259716ef"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "c8d2f34ea96ea3bce6ba2535f867f0d4ee3b22e1"
                },
                {
                  "fixed": "d52c04474feac8e305814a5228e622afe481b2ef"
                },
                {
                  "fixed": "008ab3c53bc4f0b2f20013c8f6c204a3203d0b8b"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "4.19.313"
                },
                {
                  "fixed": "4.19.316"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "5.4.275"
                },
                {
                  "fixed": "5.4.278"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "5.10.216"
                },
                {
                  "fixed": "5.10.219"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "5.15.157"
                },
                {
                  "fixed": "5.15.161"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6.1.88"
                },
                {
                  "fixed": "6.1.93"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6.6.29"
                },
                {
                  "fixed": "6.6.33"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6.8.8"
                },
                {
                  "fixed": "6.8.12"
                }
              ]
            }
          ],
          "versions": [
            "v4.19.315",
            "v4.19.314",
            "v4.19.313",
            "v5.4.277",
            "v5.4.276",
            "v5.4.275",
            "v5.10.218",
            "v5.10.217",
            "v5.10.216",
            "v5.15.160",
            "v5.15.159",
            "v5.15.158",
            "v5.15.157",
            "v6.1.92",
            "v6.1.91",
            "v6.1.90",
            "v6.1.89",
            "v6.1.88",
            "v6.6.32",
            "v6.6.31",
            "v6.6.30",
            "v6.6.29",
            "v6.8.11",
            "v6.8.10",
            "v6.8.9",
            "v6.8.8"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-38587.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "4.19.316"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.20.0"
                },
                {
                  "fixed": "5.4.278"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.219"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.161"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.93"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.33"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.8.12"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.9.0"
                },
                {
                  "fixed": "6.9.3"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-38587.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:48.129777059Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/html/ssa-265688.html",
        "https://cert-portal.siemens.com/productcert/html/ssa-613116.html",
        "https://git.kernel.org/stable/c/008ab3c53bc4f0b2f20013c8f6c204a3203d0b8b",
        "https://git.kernel.org/stable/c/07ef95cc7a579731198c93beed281e3a79a0e586",
        "https://git.kernel.org/stable/c/3726f75a1ccc16cd335c0ccfad1d92ee08ecba5e",
        "https://git.kernel.org/stable/c/42f0a3f67158ed6b2908d2b9ffbf7e96d23fd358",
        "https://git.kernel.org/stable/c/504178fb7d9f6cdb0496d5491efb05f45597e535",
        "https://git.kernel.org/stable/c/c6e1650cf5df1bd6638eeee231a683ef30c7d4eb",
        "https://git.kernel.org/stable/c/cd7f3978c2ec741aedd1d860b2adb227314cf996",
        "https://git.kernel.org/stable/c/d52c04474feac8e305814a5228e622afe481b2ef",
        "https://git.kernel.org/stable/c/eb1ea64328d4cc7d7a912c563f8523d5259716ef",
        "https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38587.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-38587",
        "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/2024/38xxx/CVE-2024-38587.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-38587",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 515893,
  "published_at": "2024-06-19T13:37:42.537+00:00"
}