Skip to content
Heist/ feed
Back to feed
CriticalFix available

smb: client: fix ALIGN() overflow in symlink_data() error context loop

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: smb: client: fix ALIGN() overflow in symlink_data() error context loop The check added by commit 7d9a7f1f96cd ("smb/client: fix possible infinite loop and oob read in symlink_data()") compared the post-ALIGN length against the remaining buffer, but ALIGN() itself can overflow: for ErrorDataLength near UINT32_MAX (e.g. 0xFFFFFFF9), ALIGN(x, 8) wraps to 0, so the subsequent bounds check passes, and the loop advances by zero bytes leaving 'p' pointing into stale data. Fix by checking the raw ErrorDataLength against the remaining space before applying ALIGN(), then checking again after. Since raw_len is bounded by the buffer, raw_len + 7 cannot overflow, so the second check is an exact post-alignment bounds guard.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.1.188, 6.12.109, 6.18.50, 6.6.157, 7.2.4
CVEs
CVE-2026-89634
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 03:05 UTC · Revision 1

Source evidence

smb: client: fix ALIGN() overflow in symlink_data() error context loop

core-osv · Original source

Published 11 Sept 2026, 19:45 UTC

In the Linux kernel, the following vulnerability has been resolved: smb: client: fix ALIGN() overflow in symlink_data() error context loop The check added by commit 7d9a7f1f96cd ("smb/client: fix possible infinite loop and oob read in symlink_data()") compared the post-ALIGN length against the remaining buffer, but ALIGN() itself can overflow: for ErrorDataLength near UINT32_MAX (e.g. 0xFFFFFFF9), ALIGN(x, 8) wraps to 0, so the subsequent bounds check passes, and the loop advances by zero bytes leaving 'p' pointing into stale data. Fix by checking the raw ErrorDataLength against the remaining space before applying ALIGN(), then checking again after. Since raw_len is bounded by the buffer, raw_len + 7 cannot overflow, so the second check is an exact post-alignment bounds guard.

osv:CVE-2026-89634

Kernel

Fixed versions: 6.1.188, 6.6.157, 6.12.109, 6.18.50, 7.2.4

Complete source record
{
  "id": "a7cf953ecdb6fca4aa3822ad6a57cabcaf9899e20af932086acaeac935cf3fb9",
  "url": "https://osv.dev/vulnerability/CVE-2026-89634",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "smb: client: fix ALIGN() overflow in symlink_data() error context loop",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: smb: client: fix ALIGN() overflow in symlink_data() error context loop The check added by commit 7d9a7f1f96cd (\"smb/client: fix possible infinite loop and oob read in symlink_data()\") compared the post-ALIGN length against the remaining buffer, but ALIGN() itself can overflow: for ErrorDataLength near UINT32_MAX (e.g. 0xFFFFFFF9), ALIGN(x, 8) wraps to 0, so the subsequent bounds check passes, and the loop advances by zero bytes leaving 'p' pointing into stale data. Fix by checking the raw ErrorDataLength against the remaining space before applying ALIGN(), then checking again after. Since raw_len is bounded by the buffer, raw_len + 7 cannot overflow, so the second check is an exact post-alignment bounds guard.",
    "evidence": "osv:CVE-2026-89634",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.1.188",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.157",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.109",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.50",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "7.2.4",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "CVE-2026-89634",
      "aliases": [
        "CVE-2026-89634"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/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": "76894f3e2f71177747b8b4763fb180e800279585"
                },
                {
                  "fixed": "2b4a25baa0b936fef6915c0459925077b324ecaf"
                },
                {
                  "fixed": "b89d678f9eafcf8d74885983166ba26b40a04ea0"
                },
                {
                  "fixed": "657372ba6ea50b4474d2a6a610097eae8cd1f3e9"
                },
                {
                  "fixed": "1f824f61d1df52392eaf0b74dfa5659d724fde30"
                },
                {
                  "fixed": "62a3025983c8c735a3c6fc85a59316f31b59af07"
                },
                {
                  "fixed": "62656b024efc21c3230eade1a847f25871c3d2bb"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6.0.16"
                },
                {
                  "fixed": "6.1"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "2d046892a493d9760c35fdaefc3017f27f91b621"
                }
              ]
            }
          ],
          "versions": [
            "v6.0.19",
            "v6.0.18",
            "v6.0.17",
            "v6.0.16"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89634.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.1.0"
                },
                {
                  "fixed": "6.1.188"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.157"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.109"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.50"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.19.0"
                },
                {
                  "fixed": "7.2.4"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89634.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:49.148222484Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/1f824f61d1df52392eaf0b74dfa5659d724fde30",
        "https://git.kernel.org/stable/c/2b4a25baa0b936fef6915c0459925077b324ecaf",
        "https://git.kernel.org/stable/c/62656b024efc21c3230eade1a847f25871c3d2bb",
        "https://git.kernel.org/stable/c/62a3025983c8c735a3c6fc85a59316f31b59af07",
        "https://git.kernel.org/stable/c/657372ba6ea50b4474d2a6a610097eae8cd1f3e9",
        "https://git.kernel.org/stable/c/b89d678f9eafcf8d74885983166ba26b40a04ea0",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/89xxx/CVE-2026-89634.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-89634",
        "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/2026/89xxx/CVE-2026-89634.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-89634",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 517612,
  "published_at": "2026-09-11T19:45:28.823+00:00"
}