CVE-2024-42236 (GCVE-0-2024-42236)

Vulnerability from cvelistv5 – Published: 2024-08-07 15:14 – Updated: 2026-08-05 11:36
VLAI
Title
usb: gadget: configfs: Prevent OOB read/write in usb_string_copy()
Summary
In the Linux kernel, the following vulnerability has been resolved: usb: gadget: configfs: Prevent OOB read/write in usb_string_copy() Userspace provided string 's' could trivially have the length zero. Left unchecked this will firstly result in an OOB read in the form `if (str[0 - 1] == '\n') followed closely by an OOB write in the form `str[0 - 1] = '\0'`. There is already a validating check to catch strings that are too long. Let's supply an additional check for invalid strings that are too short.
SSVC
Exploitation: none Automatable: no Technical Impact: partial
CISA Coordinator (v2.0.3)
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 88af8bbe4ef781031ad3370847553f3b42ba0076 , < a444c3fc264119801575ab086e03fb4952f23fd0 (git)
Affected: 88af8bbe4ef781031ad3370847553f3b42ba0076 , < c95fbdde87e39e5e0ae27f28bf6711edfb985caa (git)
Affected: 88af8bbe4ef781031ad3370847553f3b42ba0076 , < e8474a10c535e6a2024c3b06e37e4a3a23beb490 (git)
Affected: 88af8bbe4ef781031ad3370847553f3b42ba0076 , < 72b8ee0d9826e8ed00e0bdfce3e46b98419b37ce (git)
Affected: 88af8bbe4ef781031ad3370847553f3b42ba0076 , < 2d16f63d8030903e5031853e79d731ee5d474e70 (git)
Affected: 88af8bbe4ef781031ad3370847553f3b42ba0076 , < d1205033e912f9332c1dbefa812e6ceb0575ce0a (git)
Affected: 88af8bbe4ef781031ad3370847553f3b42ba0076 , < eecfefad0953b2f31aaefa058f7f348ff39c4bba (git)
Affected: 88af8bbe4ef781031ad3370847553f3b42ba0076 , < 6d3c721e686ea6c59e18289b400cc95c76e927e0 (git)
Create a notification for this product.
Linux Linux Affected: 3.10
Unaffected: 0 , < 3.10 (semver)
Unaffected: 4.19.318 , ≤ 4.19.* (semver)
Unaffected: 5.4.280 , ≤ 5.4.* (semver)
Unaffected: 5.10.222 , ≤ 5.10.* (semver)
Unaffected: 5.15.163 , ≤ 5.15.* (semver)
Unaffected: 6.1.100 , ≤ 6.1.* (semver)
Unaffected: 6.6.41 , ≤ 6.6.* (semver)
Unaffected: 6.9.10 , ≤ 6.9.* (semver)
Unaffected: 6.10 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2024-42236",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-09-10T16:14:04.317460Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-09-11T17:34:32.140Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      },
      {
        "providerMetadata": {
          "dateUpdated": "2025-11-03T22:02:37.767Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "url": "https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/usb/gadget/configfs.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "a444c3fc264119801575ab086e03fb4952f23fd0",
              "status": "affected",
              "version": "88af8bbe4ef781031ad3370847553f3b42ba0076",
              "versionType": "git"
            },
            {
              "lessThan": "c95fbdde87e39e5e0ae27f28bf6711edfb985caa",
              "status": "affected",
              "version": "88af8bbe4ef781031ad3370847553f3b42ba0076",
              "versionType": "git"
            },
            {
              "lessThan": "e8474a10c535e6a2024c3b06e37e4a3a23beb490",
              "status": "affected",
              "version": "88af8bbe4ef781031ad3370847553f3b42ba0076",
              "versionType": "git"
            },
            {
              "lessThan": "72b8ee0d9826e8ed00e0bdfce3e46b98419b37ce",
              "status": "affected",
              "version": "88af8bbe4ef781031ad3370847553f3b42ba0076",
              "versionType": "git"
            },
            {
              "lessThan": "2d16f63d8030903e5031853e79d731ee5d474e70",
              "status": "affected",
              "version": "88af8bbe4ef781031ad3370847553f3b42ba0076",
              "versionType": "git"
            },
            {
              "lessThan": "d1205033e912f9332c1dbefa812e6ceb0575ce0a",
              "status": "affected",
              "version": "88af8bbe4ef781031ad3370847553f3b42ba0076",
              "versionType": "git"
            },
            {
              "lessThan": "eecfefad0953b2f31aaefa058f7f348ff39c4bba",
              "status": "affected",
              "version": "88af8bbe4ef781031ad3370847553f3b42ba0076",
              "versionType": "git"
            },
            {
              "lessThan": "6d3c721e686ea6c59e18289b400cc95c76e927e0",
              "status": "affected",
              "version": "88af8bbe4ef781031ad3370847553f3b42ba0076",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/usb/gadget/configfs.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "3.10"
            },
            {
              "lessThan": "3.10",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.318",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.280",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.222",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.163",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.100",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.41",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.9.*",
              "status": "unaffected",
              "version": "6.9.10",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.10",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.318",
                  "versionStartIncluding": "3.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.280",
                  "versionStartIncluding": "3.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.222",
                  "versionStartIncluding": "3.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.163",
                  "versionStartIncluding": "3.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.100",
                  "versionStartIncluding": "3.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.41",
                  "versionStartIncluding": "3.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.9.10",
                  "versionStartIncluding": "3.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.10",
                  "versionStartIncluding": "3.10",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: configfs: Prevent OOB read/write in usb_string_copy()\n\nUserspace provided string \u0027s\u0027 could trivially have the length zero. Left\nunchecked this will firstly result in an OOB read in the form\n`if (str[0 - 1] == \u0027\\n\u0027) followed closely by an OOB write in the form\n`str[0 - 1] = \u0027\\0\u0027`.\n\nThere is already a validating check to catch strings that are too long.\nLet\u0027s supply an additional check for invalid strings that are too short."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The vulnerable input is a local `write(2)` to a USB gadget configfs attribute file (`/sys/kernel/config/usb_gadget/.../manufacturer`), not data from a USB peer or the network \u2014 no hardware, UDC binding, or physical access is needed.\nAC:L - A single deterministic `write(fd, \"\\0\", 1)` always drives `strlen()` to 0 and performs the `str[-1]` out-of-bounds access; there is no race and no condition outside the attacker\u0027s control, and heap grooming for the OOB write is attacker-driven via repeated gadget/string alloc-free cycles.\nPR:L - Some local access to the gadget configfs attributes is required, and these files are routinely delegated to non-root identities (Android chowns `/config/usb_gadget` to system:system for the non-root USB gadget HAL; embedded images commonly group-delegate it), so an unprivileged/low-privileged local process can reach the path.\nUI:N - The attacker performs the configfs write themselves; no victim action, mount, or interaction of any kind is needed.\nS:U - The out-of-bounds read and write stay within kernel heap memory managed by the same security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - The bug is an out-of-bounds heap read plus heap corruption of an adjacent slab object, and such corruption is leveragable for information disclosure once the attacker grooms `kmalloc-128` to place a chosen victim object before the string buffer.\nI:H - `str[-1] = \u0027\\0\u0027` is a genuine out-of-bounds heap write that clears the trailing byte of the neighbouring `kmalloc-128` object \u2014 an attacker-groomable NUL-byte poisoning primitive that corrupts kernel data structures.\nA:H - The OOB access can fault on an unmapped/guard page (KFENCE, DEBUG_PAGEALLOC) or trip KASAN, and clearing a byte of an adjacent live slab object readily leads to a later oops or panic."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T11:36:01.503Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/a444c3fc264119801575ab086e03fb4952f23fd0"
        },
        {
          "url": "https://git.kernel.org/stable/c/c95fbdde87e39e5e0ae27f28bf6711edfb985caa"
        },
        {
          "url": "https://git.kernel.org/stable/c/e8474a10c535e6a2024c3b06e37e4a3a23beb490"
        },
        {
          "url": "https://git.kernel.org/stable/c/72b8ee0d9826e8ed00e0bdfce3e46b98419b37ce"
        },
        {
          "url": "https://git.kernel.org/stable/c/2d16f63d8030903e5031853e79d731ee5d474e70"
        },
        {
          "url": "https://git.kernel.org/stable/c/d1205033e912f9332c1dbefa812e6ceb0575ce0a"
        },
        {
          "url": "https://git.kernel.org/stable/c/eecfefad0953b2f31aaefa058f7f348ff39c4bba"
        },
        {
          "url": "https://git.kernel.org/stable/c/6d3c721e686ea6c59e18289b400cc95c76e927e0"
        }
      ],
      "title": "usb: gadget: configfs: Prevent OOB read/write in usb_string_copy()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-42236",
    "datePublished": "2024-08-07T15:14:25.642Z",
    "dateReserved": "2024-07-30T07:40:12.252Z",
    "dateUpdated": "2026-08-05T11:36:01.503Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2024-42236",
      "date": "2026-08-06",
      "epss": "0.00241",
      "percentile": "0.1524"
    },
    "fkie_nvd": {
      "configurations": "[{\"nodes\": [{\"operator\": \"OR\", \"negate\": false, \"cpeMatch\": [{\"vulnerable\": true, \"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"versionEndExcluding\": \"4.19.318\", \"matchCriteriaId\": \"43E390F8-BDB4-4990-B94D-095DD8369C31\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"versionStartIncluding\": \"4.20\", \"versionEndExcluding\": \"5.4.280\", \"matchCriteriaId\": \"625DBFAB-C3D0-4309-A27F-12D6428FB38F\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"versionStartIncluding\": \"5.5\", \"versionEndExcluding\": \"5.10.222\", \"matchCriteriaId\": \"00696AC5-EE29-437F-97F9-C4D66608B327\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"versionStartIncluding\": \"5.11\", \"versionEndExcluding\": \"5.15.163\", \"matchCriteriaId\": \"A97DEB09-4927-40F8-B5C6-F5BD5EAE0CFD\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"versionStartIncluding\": \"5.16\", \"versionEndExcluding\": \"6.1.100\", \"matchCriteriaId\": \"100CDF74-4DB5-4FC6-A54B-BDBDB0C27137\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"versionStartIncluding\": \"6.2\", \"versionEndExcluding\": \"6.6.41\", \"matchCriteriaId\": \"96AC42B8-D66D-4AC5-B466-E9BA7910FA29\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"versionStartIncluding\": \"6.7\", \"versionEndExcluding\": \"6.9.10\", \"matchCriteriaId\": \"AB2E8DEC-CFD5-4C2B-981D-E7E45A36C352\"}]}]}]",
      "descriptions": "[{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nusb: gadget: configfs: Prevent OOB read/write in usb_string_copy()\\n\\nUserspace provided string \u0027s\u0027 could trivially have the length zero. Left\\nunchecked this will firstly result in an OOB read in the form\\n`if (str[0 - 1] == \u0027\\\\n\u0027) followed closely by an OOB write in the form\\n`str[0 - 1] = \u0027\\\\0\u0027`.\\n\\nThere is already a validating check to catch strings that are too long.\\nLet\u0027s supply an additional check for invalid strings that are too short.\"}, {\"lang\": \"es\", \"value\": \"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: usb: gadget: configfs: Evitar lectura/escritura OOB en usb_string_copy() Las cadenas \u0027s\u0027 proporcionadas por el espacio de usuario podr\\u00edan tener trivialmente una longitud cero. Si no se marca, esto dar\\u00e1 como resultado en primer lugar una lectura OOB en el formato `if (str[0 - 1] == \u0027\\\\n\u0027) seguida de cerca por una escritura OOB en el formato `str[0 - 1] = \u0027\\\\0\u0027 `. Ya existe una verificaci\\u00f3n de validaci\\u00f3n para detectar cadenas que son demasiado largas. Proporcionemos una verificaci\\u00f3n adicional para cadenas no v\\u00e1lidas que sean demasiado cortas.\"}]",
      "id": "CVE-2024-42236",
      "lastModified": "2024-08-08T14:54:34.470",
      "metrics": "{\"cvssMetricV31\": [{\"source\": \"nvd@nist.gov\", \"type\": \"Primary\", \"cvssData\": {\"version\": \"3.1\", \"vectorString\": \"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\", \"baseScore\": 5.5, \"baseSeverity\": \"MEDIUM\", \"attackVector\": \"LOCAL\", \"attackComplexity\": \"LOW\", \"privilegesRequired\": \"LOW\", \"userInteraction\": \"NONE\", \"scope\": \"UNCHANGED\", \"confidentialityImpact\": \"NONE\", \"integrityImpact\": \"NONE\", \"availabilityImpact\": \"HIGH\"}, \"exploitabilityScore\": 1.8, \"impactScore\": 3.6}]}",
      "published": "2024-08-07T16:15:46.530",
      "references": "[{\"url\": \"https://git.kernel.org/stable/c/2d16f63d8030903e5031853e79d731ee5d474e70\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"tags\": [\"Patch\"]}, {\"url\": \"https://git.kernel.org/stable/c/6d3c721e686ea6c59e18289b400cc95c76e927e0\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"tags\": [\"Patch\"]}, {\"url\": \"https://git.kernel.org/stable/c/72b8ee0d9826e8ed00e0bdfce3e46b98419b37ce\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"tags\": [\"Patch\"]}, {\"url\": \"https://git.kernel.org/stable/c/a444c3fc264119801575ab086e03fb4952f23fd0\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"tags\": [\"Patch\"]}, {\"url\": \"https://git.kernel.org/stable/c/c95fbdde87e39e5e0ae27f28bf6711edfb985caa\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"tags\": [\"Patch\"]}, {\"url\": \"https://git.kernel.org/stable/c/d1205033e912f9332c1dbefa812e6ceb0575ce0a\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"tags\": [\"Patch\"]}, {\"url\": \"https://git.kernel.org/stable/c/e8474a10c535e6a2024c3b06e37e4a3a23beb490\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"tags\": [\"Patch\"]}, {\"url\": \"https://git.kernel.org/stable/c/eecfefad0953b2f31aaefa058f7f348ff39c4bba\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"tags\": [\"Patch\"]}]",
      "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "vulnStatus": "Analyzed",
      "weaknesses": "[{\"source\": \"nvd@nist.gov\", \"type\": \"Primary\", \"description\": [{\"lang\": \"en\", \"value\": \"CWE-787\"}]}]"
    },
    "microsoft_vex": {
      "current_release_date": "2026-02-19T01:13:57.000Z",
      "cve": "CVE-2024-42236",
      "id": "msrc_CVE-2024-42236",
      "initial_release_date": "2024-08-02T00:00:00.000Z",
      "product_status:fixed": "5",
      "product_status:known_affected": "5",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "usb: gadget: configfs: Prevent OOB read/write in usb_string_copy()",
      "url": "https://msrc.microsoft.com/csaf/vex/2024/msrc_cve-2024-42236.json",
      "version": "3"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2024-42236\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-08-07T16:15:46.530\",\"lastModified\":\"2026-08-04T11:19:41.077\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nusb: gadget: configfs: Prevent OOB read/write in usb_string_copy()\\n\\nUserspace provided string \u0027s\u0027 could trivially have the length zero. Left\\nunchecked this will firstly result in an OOB read in the form\\n`if (str[0 - 1] == \u0027\\\\n\u0027) followed closely by an OOB write in the form\\n`str[0 - 1] = \u0027\\\\0\u0027`.\\n\\nThere is already a validating check to catch strings that are too long.\\nLet\u0027s supply an additional check for invalid strings that are too short.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: usb: gadget: configfs: Evitar lectura/escritura OOB en usb_string_copy() Las cadenas \u0027s\u0027 proporcionadas por el espacio de usuario podr\u00edan tener trivialmente una longitud cero. Si no se marca, esto dar\u00e1 como resultado en primer lugar una lectura OOB en el formato `if (str[0 - 1] == \u0027\\\\n\u0027) seguida de cerca por una escritura OOB en el formato `str[0 - 1] = \u0027\\\\0\u0027 `. Ya existe una verificaci\u00f3n de validaci\u00f3n para detectar cadenas que son demasiado largas. Proporcionemos una verificaci\u00f3n adicional para cadenas no v\u00e1lidas que sean demasiado cortas.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"drivers/usb/gadget/configfs.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"88af8bbe4ef781031ad3370847553f3b42ba0076\",\"lessThan\":\"a444c3fc264119801575ab086e03fb4952f23fd0\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"88af8bbe4ef781031ad3370847553f3b42ba0076\",\"lessThan\":\"c95fbdde87e39e5e0ae27f28bf6711edfb985caa\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"88af8bbe4ef781031ad3370847553f3b42ba0076\",\"lessThan\":\"e8474a10c535e6a2024c3b06e37e4a3a23beb490\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"88af8bbe4ef781031ad3370847553f3b42ba0076\",\"lessThan\":\"72b8ee0d9826e8ed00e0bdfce3e46b98419b37ce\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"88af8bbe4ef781031ad3370847553f3b42ba0076\",\"lessThan\":\"2d16f63d8030903e5031853e79d731ee5d474e70\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"88af8bbe4ef781031ad3370847553f3b42ba0076\",\"lessThan\":\"d1205033e912f9332c1dbefa812e6ceb0575ce0a\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"88af8bbe4ef781031ad3370847553f3b42ba0076\",\"lessThan\":\"eecfefad0953b2f31aaefa058f7f348ff39c4bba\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"88af8bbe4ef781031ad3370847553f3b42ba0076\",\"lessThan\":\"6d3c721e686ea6c59e18289b400cc95c76e927e0\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"drivers/usb/gadget/configfs.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"3.10\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"3.10\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"4.19.318\",\"lessThanOrEqual\":\"4.19.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.4.280\",\"lessThanOrEqual\":\"5.4.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.10.222\",\"lessThanOrEqual\":\"5.10.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.15.163\",\"lessThanOrEqual\":\"5.15.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.1.100\",\"lessThanOrEqual\":\"6.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.6.41\",\"lessThanOrEqual\":\"6.6.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.9.10\",\"lessThanOrEqual\":\"6.9.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.10\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":7.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":5.9},{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\",\"baseScore\":5.5,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":3.6}],\"ssvcV203\":[{\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\",\"ssvcData\":{\"timestamp\":\"2024-09-10T16:14:04.317460Z\",\"id\":\"CVE-2024-42236\",\"options\":[{\"exploitation\":\"none\"},{\"automatable\":\"no\"},{\"technicalImpact\":\"partial\"}],\"role\":\"CISA Coordinator\",\"version\":\"2.0.3\"}}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-787\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionEndExcluding\":\"4.19.318\",\"matchCriteriaId\":\"43E390F8-BDB4-4990-B94D-095DD8369C31\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"4.20\",\"versionEndExcluding\":\"5.4.280\",\"matchCriteriaId\":\"625DBFAB-C3D0-4309-A27F-12D6428FB38F\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.5\",\"versionEndExcluding\":\"5.10.222\",\"matchCriteriaId\":\"00696AC5-EE29-437F-97F9-C4D66608B327\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.11\",\"versionEndExcluding\":\"5.15.163\",\"matchCriteriaId\":\"A97DEB09-4927-40F8-B5C6-F5BD5EAE0CFD\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.16\",\"versionEndExcluding\":\"6.1.100\",\"matchCriteriaId\":\"100CDF74-4DB5-4FC6-A54B-BDBDB0C27137\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.2\",\"versionEndExcluding\":\"6.6.41\",\"matchCriteriaId\":\"96AC42B8-D66D-4AC5-B466-E9BA7910FA29\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.7\",\"versionEndExcluding\":\"6.9.10\",\"matchCriteriaId\":\"AB2E8DEC-CFD5-4C2B-981D-E7E45A36C352\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/2d16f63d8030903e5031853e79d731ee5d474e70\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/6d3c721e686ea6c59e18289b400cc95c76e927e0\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/72b8ee0d9826e8ed00e0bdfce3e46b98419b37ce\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/a444c3fc264119801575ab086e03fb4952f23fd0\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/c95fbdde87e39e5e0ae27f28bf6711edfb985caa\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/d1205033e912f9332c1dbefa812e6ceb0575ce0a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/e8474a10c535e6a2024c3b06e37e4a3a23beb490\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/eecfefad0953b2f31aaefa058f7f348ff39c4bba\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"}]}}",
    "redhat_vex": {
      "aggregate_severity": "Low",
      "current_release_date": "2026-08-04T22:42:57+00:00",
      "cve": "CVE-2024-42236",
      "id": "CVE-2024-42236",
      "initial_release_date": "2024-08-07T00:00:00+00:00",
      "product_status:known_not_affected": "198",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: usb: gadget: configfs: Prevent OOB read/write in usb_string_copy()",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-42236.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-08-05T00:54:36Z",
      "cve": "CVE-2024-42236",
      "id": "CVE-2024-42236",
      "initial_release_date": "2024-08-08T02:20:30Z",
      "product_status:known_affected": "516",
      "product_status:known_not_affected": "18",
      "product_status:recommended": "732",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2024-42236",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2024-42236.json",
      "version": "67"
    },
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html\"}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2025-11-03T22:02:37.767Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-42236\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-09-10T16:14:04.317460Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-09-11T12:42:24.285Z\"}}], \"cna\": {\"title\": \"usb: gadget: configfs: Prevent OOB read/write in usb_string_copy()\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"88af8bbe4ef781031ad3370847553f3b42ba0076\", \"lessThan\": \"a444c3fc264119801575ab086e03fb4952f23fd0\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"88af8bbe4ef781031ad3370847553f3b42ba0076\", \"lessThan\": \"c95fbdde87e39e5e0ae27f28bf6711edfb985caa\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"88af8bbe4ef781031ad3370847553f3b42ba0076\", \"lessThan\": \"e8474a10c535e6a2024c3b06e37e4a3a23beb490\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"88af8bbe4ef781031ad3370847553f3b42ba0076\", \"lessThan\": \"72b8ee0d9826e8ed00e0bdfce3e46b98419b37ce\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"88af8bbe4ef781031ad3370847553f3b42ba0076\", \"lessThan\": \"2d16f63d8030903e5031853e79d731ee5d474e70\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"88af8bbe4ef781031ad3370847553f3b42ba0076\", \"lessThan\": \"d1205033e912f9332c1dbefa812e6ceb0575ce0a\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"88af8bbe4ef781031ad3370847553f3b42ba0076\", \"lessThan\": \"eecfefad0953b2f31aaefa058f7f348ff39c4bba\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"88af8bbe4ef781031ad3370847553f3b42ba0076\", \"lessThan\": \"6d3c721e686ea6c59e18289b400cc95c76e927e0\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/usb/gadget/configfs.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"3.10\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"3.10\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"4.19.318\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"4.19.*\"}, {\"status\": \"unaffected\", \"version\": \"5.4.280\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.4.*\"}, {\"status\": \"unaffected\", \"version\": \"5.10.222\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.10.*\"}, {\"status\": \"unaffected\", \"version\": \"5.15.163\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.15.*\"}, {\"status\": \"unaffected\", \"version\": \"6.1.100\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.1.*\"}, {\"status\": \"unaffected\", \"version\": \"6.6.41\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.6.*\"}, {\"status\": \"unaffected\", \"version\": \"6.9.10\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.9.*\"}, {\"status\": \"unaffected\", \"version\": \"6.10\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/usb/gadget/configfs.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/a444c3fc264119801575ab086e03fb4952f23fd0\"}, {\"url\": \"https://git.kernel.org/stable/c/c95fbdde87e39e5e0ae27f28bf6711edfb985caa\"}, {\"url\": \"https://git.kernel.org/stable/c/e8474a10c535e6a2024c3b06e37e4a3a23beb490\"}, {\"url\": \"https://git.kernel.org/stable/c/72b8ee0d9826e8ed00e0bdfce3e46b98419b37ce\"}, {\"url\": \"https://git.kernel.org/stable/c/2d16f63d8030903e5031853e79d731ee5d474e70\"}, {\"url\": \"https://git.kernel.org/stable/c/d1205033e912f9332c1dbefa812e6ceb0575ce0a\"}, {\"url\": \"https://git.kernel.org/stable/c/eecfefad0953b2f31aaefa058f7f348ff39c4bba\"}, {\"url\": \"https://git.kernel.org/stable/c/6d3c721e686ea6c59e18289b400cc95c76e927e0\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nusb: gadget: configfs: Prevent OOB read/write in usb_string_copy()\\n\\nUserspace provided string \u0027s\u0027 could trivially have the length zero. Left\\nunchecked this will firstly result in an OOB read in the form\\n`if (str[0 - 1] == \u0027\\\\n\u0027) followed closely by an OOB write in the form\\n`str[0 - 1] = \u0027\\\\0\u0027`.\\n\\nThere is already a validating check to catch strings that are too long.\\nLet\u0027s supply an additional check for invalid strings that are too short.\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"4.19.318\", \"versionStartIncluding\": \"3.10\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.4.280\", \"versionStartIncluding\": \"3.10\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.10.222\", \"versionStartIncluding\": \"3.10\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.15.163\", \"versionStartIncluding\": \"3.10\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.1.100\", \"versionStartIncluding\": \"3.10\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.6.41\", \"versionStartIncluding\": \"3.10\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.9.10\", \"versionStartIncluding\": \"3.10\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.10\", \"versionStartIncluding\": \"3.10\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2026-01-05T10:52:05.655Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2024-42236\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-01-05T10:52:05.655Z\", \"dateReserved\": \"2024-07-30T07:40:12.252Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-08-07T15:14:25.642Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }
  }
}



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…