{
   "containers": {
      "cna": {
         "providerMetadata": {
            "orgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038"
         },
         "descriptions": [
            {
               "lang": "en",
               "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ncifs: fix underflow in parse_server_interfaces()\n\nIn this loop, we step through the buffer and after each item we check\nif the size_left is greater than the minimum size we need.  However,\nthe problem is that \"bytes_left\" is type ssize_t while sizeof() is type\nsize_t.  That means that because of type promotion, the comparison is\ndone as an unsigned and if we have negative bytes left the loop\ncontinues instead of ending."
            }
         ],
         "affected": [
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "unaffected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "fs/smb/client/smb2ops.c"
               ],
               "versions": [
                  {
                     "version": "fe856be475f7",
                     "lessThan": "7190353835b4",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "fe856be475f7",
                     "lessThan": "f7ff1c89fb6e",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "fe856be475f7",
                     "lessThan": "df2af9fdbc4d",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "fe856be475f7",
                     "lessThan": "cffe487026be",
                     "status": "affected",
                     "versionType": "git"
                  }
               ]
            },
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "affected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "fs/smb/client/smb2ops.c"
               ],
               "versions": [
                  {
                     "version": "4.18",
                     "status": "affected"
                  },
                  {
                     "version": "0",
                     "lessThan": "4.18",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.1.79",
                     "lessThanOrEqual": "6.1.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.6.18",
                     "lessThanOrEqual": "6.6.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.7.6",
                     "lessThanOrEqual": "6.7.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.8",
                     "lessThanOrEqual": "*",
                     "status": "unaffected",
                     "versionType": "original_commit_for_fix"
                  }
               ]
            }
         ],
         "references": [
            {
               "url": "https://git.kernel.org/stable/c/7190353835b4a219abb70f90b06cdcae97f11512"
            },
            {
               "url": "https://git.kernel.org/stable/c/f7ff1c89fb6e9610d2b01c1821727729e6609308"
            },
            {
               "url": "https://git.kernel.org/stable/c/df2af9fdbc4ddde18a3371c4ca1a86596e8be301"
            },
            {
               "url": "https://git.kernel.org/stable/c/cffe487026be13eaf37ea28b783d9638ab147204"
            }
         ],
         "title": "cifs: fix underflow in parse_server_interfaces()",
         "x_generator": {
            "engine": "bippy-a5840b7849dd"
         }
      }
   },
   "cveMetadata": {
      "assignerOrgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038",
      "cveID": "CVE-2024-26828",
      "requesterUserId": "gregkh@kernel.org",
      "serial": "1",
      "state": "PUBLISHED"
   },
   "dataType": "CVE_RECORD",
   "dataVersion": "5.0"
}
