CVE-2026-68368 (GCVE-0-2026-68368)

Vulnerability from cvelistv5 – Published: 2026-08-10 12:03 – Updated: 2026-08-10 12:03
VLAI
Title
usb: gadget: f_ncm: validate datagram bounds in ncm_unwrap_ntb()
Summary
In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_ncm: validate datagram bounds in ncm_unwrap_ntb() When unpacking host-supplied NTBs, ncm_unwrap_ntb() checks datagram length against frame_max but does not verify that the datagram fits within the declared block length. Additionally, when decoding multiple NTBs from a single socket buffer, subsequent block lengths are not checked against the actual remaining buffer data. With these checks missing, a malicious USB host can specify datagram offsets and lengths that point beyond the block, or supply secondary NTB headers declaring lengths larger than the buffer. skb_put_data() then copies adjacent kernel memory from skb_shared_info into the network skb. Fix this by verifying that sufficient buffer space remains for the NTB header before parsing, handling zero-length block declarations, ensuring that block lengths never exceed the remaining buffer space, and verifying that each datagram payload stays strictly within the block boundary.
Severity
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52 , < e07751d0527ccc2a1c32eb0b0b7da3b4b9b5381f (git)
Affected: 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52 , < fff1059d139ef798bab917990524faaf25854ca8 (git)
Affected: 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52 , < 40c706a0224bde194667e3378c689b542fec4b44 (git)
Affected: 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52 , < 41fd5f2fb0027d3773ae949e3247c2e0a2a7fe5c (git)
Affected: 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52 , < 1febec7e47cdcd01f43fb0211094e3010474666e (git)
Affected: f7e0611e207d8908c4f2858e244370529a76dbf7 (git)
Affected: b88ad6e714284b33a47834f5f2a294c2b37c66aa (git)
Affected: 471b23586387a32857778c511be60ab31c98dcfd (git)
Affected: 4f529c4d1e436230d3af7c09a3239677a14d2b46 (git)
Affected: ae6a5394d9fbe118bc95cfe376d6a9d91d7547e8 (git)
Affected: 5bdf93a2f5459f944b416b188178ca4a92fd206f (git)
Affected: ff3ba016263ee93a1c6209bf5ab1599de7ab1512 (git)
Affected: e7ca00f35d8a17af1ae19d529193ebc21bfda164 (git)
Affected: 4.9.235 , < 4.10 (semver)
Affected: 4.14.196 , < 4.15 (semver)
Affected: 4.19.143 , < 4.20 (semver)
Affected: 5.4.62 , < 5.5 (semver)
Affected: 5.8.6 , < 5.9 (semver)
Affected: 4.14.328 , < 4.15 (semver)
Affected: 4.19.297 , < 4.20 (semver)
Affected: 5.4.259 , < 5.5 (semver)
Create a notification for this product.
Linux Linux Affected: 5.9
Unaffected: 0 , < 5.9 (semver)
Unaffected: 6.6.148 , ≤ 6.6.* (semver)
Unaffected: 6.12.101 , ≤ 6.12.* (semver)
Unaffected: 6.18.42 , ≤ 6.18.* (semver)
Unaffected: 7.1.6 , ≤ 7.1.* (semver)
Unaffected: 7.2-rc5 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/usb/gadget/function/f_ncm.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "e07751d0527ccc2a1c32eb0b0b7da3b4b9b5381f",
              "status": "affected",
              "version": "2b74b0a04d3e9f9f08ff026e5663dce88ff94e52",
              "versionType": "git"
            },
            {
              "lessThan": "fff1059d139ef798bab917990524faaf25854ca8",
              "status": "affected",
              "version": "2b74b0a04d3e9f9f08ff026e5663dce88ff94e52",
              "versionType": "git"
            },
            {
              "lessThan": "40c706a0224bde194667e3378c689b542fec4b44",
              "status": "affected",
              "version": "2b74b0a04d3e9f9f08ff026e5663dce88ff94e52",
              "versionType": "git"
            },
            {
              "lessThan": "41fd5f2fb0027d3773ae949e3247c2e0a2a7fe5c",
              "status": "affected",
              "version": "2b74b0a04d3e9f9f08ff026e5663dce88ff94e52",
              "versionType": "git"
            },
            {
              "lessThan": "1febec7e47cdcd01f43fb0211094e3010474666e",
              "status": "affected",
              "version": "2b74b0a04d3e9f9f08ff026e5663dce88ff94e52",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "f7e0611e207d8908c4f2858e244370529a76dbf7",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "b88ad6e714284b33a47834f5f2a294c2b37c66aa",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "471b23586387a32857778c511be60ab31c98dcfd",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "4f529c4d1e436230d3af7c09a3239677a14d2b46",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "ae6a5394d9fbe118bc95cfe376d6a9d91d7547e8",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "5bdf93a2f5459f944b416b188178ca4a92fd206f",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "ff3ba016263ee93a1c6209bf5ab1599de7ab1512",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "e7ca00f35d8a17af1ae19d529193ebc21bfda164",
              "versionType": "git"
            },
            {
              "lessThan": "4.10",
              "status": "affected",
              "version": "4.9.235",
              "versionType": "semver"
            },
            {
              "lessThan": "4.15",
              "status": "affected",
              "version": "4.14.196",
              "versionType": "semver"
            },
            {
              "lessThan": "4.20",
              "status": "affected",
              "version": "4.19.143",
              "versionType": "semver"
            },
            {
              "lessThan": "5.5",
              "status": "affected",
              "version": "5.4.62",
              "versionType": "semver"
            },
            {
              "lessThan": "5.9",
              "status": "affected",
              "version": "5.8.6",
              "versionType": "semver"
            },
            {
              "lessThan": "4.15",
              "status": "affected",
              "version": "4.14.328",
              "versionType": "semver"
            },
            {
              "lessThan": "4.20",
              "status": "affected",
              "version": "4.19.297",
              "versionType": "semver"
            },
            {
              "lessThan": "5.5",
              "status": "affected",
              "version": "5.4.259",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/usb/gadget/function/f_ncm.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.9"
            },
            {
              "lessThan": "5.9",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.148",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.101",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.42",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.1.*",
              "status": "unaffected",
              "version": "7.1.6",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.2-rc5",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.148",
                  "versionStartIncluding": "5.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.101",
                  "versionStartIncluding": "5.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.42",
                  "versionStartIncluding": "5.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1.6",
                  "versionStartIncluding": "5.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2-rc5",
                  "versionStartIncluding": "5.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "4.9.235",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "4.14.196",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "4.19.143",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "5.4.62",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "5.8.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "4.14.328",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "4.19.297",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "5.4.259",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: f_ncm: validate datagram bounds in ncm_unwrap_ntb()\n\nWhen unpacking host-supplied NTBs, ncm_unwrap_ntb() checks datagram length\nagainst frame_max but does not verify that the datagram fits within the\ndeclared block length. Additionally, when decoding multiple NTBs from a\nsingle socket buffer, subsequent block lengths are not checked against the\nactual remaining buffer data.\n\nWith these checks missing, a malicious USB host can specify datagram\noffsets and lengths that point beyond the block, or supply secondary NTB\nheaders declaring lengths larger than the buffer. skb_put_data() then\ncopies adjacent kernel memory from skb_shared_info into the network skb.\n\nFix this by verifying that sufficient buffer space remains for the NTB\nheader before parsing, handling zero-length block declarations, ensuring\nthat block lengths never exceed the remaining buffer space, and verifying\nthat each datagram payload stays strictly within the block boundary."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-10T12:03:45.579Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/e07751d0527ccc2a1c32eb0b0b7da3b4b9b5381f"
        },
        {
          "url": "https://git.kernel.org/stable/c/fff1059d139ef798bab917990524faaf25854ca8"
        },
        {
          "url": "https://git.kernel.org/stable/c/40c706a0224bde194667e3378c689b542fec4b44"
        },
        {
          "url": "https://git.kernel.org/stable/c/41fd5f2fb0027d3773ae949e3247c2e0a2a7fe5c"
        },
        {
          "url": "https://git.kernel.org/stable/c/1febec7e47cdcd01f43fb0211094e3010474666e"
        }
      ],
      "title": "usb: gadget: f_ncm: validate datagram bounds in ncm_unwrap_ntb()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-68368",
    "datePublished": "2026-08-10T12:03:45.579Z",
    "dateReserved": "2026-07-30T09:28:09.386Z",
    "dateUpdated": "2026-08-10T12:03:45.579Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-68368",
      "date": "2026-08-13",
      "epss": "0.002",
      "percentile": "0.10069"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-68368\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-08-10T13:20:29.503\",\"lastModified\":\"2026-08-10T13:20:29.503\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nusb: gadget: f_ncm: validate datagram bounds in ncm_unwrap_ntb()\\n\\nWhen unpacking host-supplied NTBs, ncm_unwrap_ntb() checks datagram length\\nagainst frame_max but does not verify that the datagram fits within the\\ndeclared block length. Additionally, when decoding multiple NTBs from a\\nsingle socket buffer, subsequent block lengths are not checked against the\\nactual remaining buffer data.\\n\\nWith these checks missing, a malicious USB host can specify datagram\\noffsets and lengths that point beyond the block, or supply secondary NTB\\nheaders declaring lengths larger than the buffer. skb_put_data() then\\ncopies adjacent kernel memory from skb_shared_info into the network skb.\\n\\nFix this by verifying that sufficient buffer space remains for the NTB\\nheader before parsing, handling zero-length block declarations, ensuring\\nthat block lengths never exceed the remaining buffer space, and verifying\\nthat each datagram payload stays strictly within the block boundary.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"drivers/usb/gadget/function/f_ncm.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"2b74b0a04d3e9f9f08ff026e5663dce88ff94e52\",\"lessThan\":\"e07751d0527ccc2a1c32eb0b0b7da3b4b9b5381f\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"2b74b0a04d3e9f9f08ff026e5663dce88ff94e52\",\"lessThan\":\"fff1059d139ef798bab917990524faaf25854ca8\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"2b74b0a04d3e9f9f08ff026e5663dce88ff94e52\",\"lessThan\":\"40c706a0224bde194667e3378c689b542fec4b44\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"2b74b0a04d3e9f9f08ff026e5663dce88ff94e52\",\"lessThan\":\"41fd5f2fb0027d3773ae949e3247c2e0a2a7fe5c\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"2b74b0a04d3e9f9f08ff026e5663dce88ff94e52\",\"lessThan\":\"1febec7e47cdcd01f43fb0211094e3010474666e\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"f7e0611e207d8908c4f2858e244370529a76dbf7\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"b88ad6e714284b33a47834f5f2a294c2b37c66aa\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"471b23586387a32857778c511be60ab31c98dcfd\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"4f529c4d1e436230d3af7c09a3239677a14d2b46\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"ae6a5394d9fbe118bc95cfe376d6a9d91d7547e8\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"5bdf93a2f5459f944b416b188178ca4a92fd206f\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"ff3ba016263ee93a1c6209bf5ab1599de7ab1512\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"e7ca00f35d8a17af1ae19d529193ebc21bfda164\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"4.9.235\",\"lessThan\":\"4.10\",\"versionType\":\"semver\",\"status\":\"affected\"},{\"version\":\"4.14.196\",\"lessThan\":\"4.15\",\"versionType\":\"semver\",\"status\":\"affected\"},{\"version\":\"4.19.143\",\"lessThan\":\"4.20\",\"versionType\":\"semver\",\"status\":\"affected\"},{\"version\":\"5.4.62\",\"lessThan\":\"5.5\",\"versionType\":\"semver\",\"status\":\"affected\"},{\"version\":\"5.8.6\",\"lessThan\":\"5.9\",\"versionType\":\"semver\",\"status\":\"affected\"},{\"version\":\"4.14.328\",\"lessThan\":\"4.15\",\"versionType\":\"semver\",\"status\":\"affected\"},{\"version\":\"4.19.297\",\"lessThan\":\"4.20\",\"versionType\":\"semver\",\"status\":\"affected\"},{\"version\":\"5.4.259\",\"lessThan\":\"5.5\",\"versionType\":\"semver\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"drivers/usb/gadget/function/f_ncm.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"5.9\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"5.9\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.6.148\",\"lessThanOrEqual\":\"6.6.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.12.101\",\"lessThanOrEqual\":\"6.12.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.18.42\",\"lessThanOrEqual\":\"6.18.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.1.6\",\"lessThanOrEqual\":\"7.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.2-rc5\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/1febec7e47cdcd01f43fb0211094e3010474666e\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/40c706a0224bde194667e3378c689b542fec4b44\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/41fd5f2fb0027d3773ae949e3247c2e0a2a7fe5c\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/e07751d0527ccc2a1c32eb0b0b7da3b4b9b5381f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/fff1059d139ef798bab917990524faaf25854ca8\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}",
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-08-11T16:46:54+00:00",
      "cve": "CVE-2026-68368",
      "id": "CVE-2026-68368",
      "initial_release_date": "2026-08-10T12:03:45.579000+00:00",
      "product_status:known_affected": "108",
      "product_status:known_not_affected": "168",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: Linux kernel USB gadget NCM driver: Information disclosure via improper datagram boundary validation",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-68368.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…