{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-98757",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-09-25T10:25:14.368Z",
        "datePublished": "2026-10-18T15:47:44.486Z",
        "dateUpdated": "2026-10-21T12:56:33.270Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-10-21T12:56:33.270Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nusb: cdns3: fix use-after-free in cdns3_gadget_exit()\n\ncdns3_gadget_start() arms two works on system_freezable_wq:\npending_status_wq for the deferred ep0 status stage and aligned_buf_wq\nfor realigned request buffers. Both handlers use the cdns3_device the\nworks are embedded in, and cdns3_pending_setup_status_handler() also\ncalls the ep0 request completion.\n\ncdns3_gadget_exit() does not wait for these works. It frees all\nendpoints and aligned buffers and drops the last reference to the\ngadget device, which frees priv_dev, so a work queued before the exit\ncan run after the free.\n\nFix this by waiting for both works after the gadget driver is unbound\nand the IRQ is freed, when no new work can be queued, and before the\nendpoints and buffers are released.\n\nThis issue was found by an in-house static analysis tool."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/usb/cdns3/cdns3-gadget.c"
                    ],
                    "versions": [
                        {
                            "version": "7733f6c32e36ff9d7adadf40001039bf219b1cbe",
                            "lessThan": "efdf0ddaed01161dc1c1f25382856f2fd1c1f44f",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "7733f6c32e36ff9d7adadf40001039bf219b1cbe",
                            "lessThan": "cc448700db656cceb4b411bf99a2e7132144d035",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "7733f6c32e36ff9d7adadf40001039bf219b1cbe",
                            "lessThan": "95160fe606e685ff18de1e6ddcbc08289476004e",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "7733f6c32e36ff9d7adadf40001039bf219b1cbe",
                            "lessThan": "159dada48ee2d53eff46e66a8011d67b2c209bbc",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "7733f6c32e36ff9d7adadf40001039bf219b1cbe",
                            "lessThan": "ebe9b68c396792c15d0ac690d592e449e74ed804",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/usb/cdns3/cdns3-gadget.c"
                    ],
                    "versions": [
                        {
                            "version": "5.4",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.4",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.160",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.113",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.56",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.2.10",
                            "lessThanOrEqual": "7.2.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.4",
                                    "versionEndExcluding": "6.6.160"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.4",
                                    "versionEndExcluding": "6.12.113"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.4",
                                    "versionEndExcluding": "6.18.56"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.4",
                                    "versionEndExcluding": "7.2.10"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.4",
                                    "versionEndExcluding": "7.3"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/efdf0ddaed01161dc1c1f25382856f2fd1c1f44f"
                },
                {
                    "url": "https://git.kernel.org/stable/c/cc448700db656cceb4b411bf99a2e7132144d035"
                },
                {
                    "url": "https://git.kernel.org/stable/c/95160fe606e685ff18de1e6ddcbc08289476004e"
                },
                {
                    "url": "https://git.kernel.org/stable/c/159dada48ee2d53eff46e66a8011d67b2c209bbc"
                },
                {
                    "url": "https://git.kernel.org/stable/c/ebe9b68c396792c15d0ac690d592e449e74ed804"
                }
            ],
            "title": "usb: cdns3: fix use-after-free in cdns3_gadget_exit()",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}