In the Linux kernel, the following vulnerability has been resolved:
usb: gadget: u_audio: Fix race condition use of controls after free during gadget unbind.
Hang on to the control IDs instead of pointers since those are correctly handled with locks.
[ { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1b739388aa3f8dfb63a9fca777e6dfa6912d0464", "signature_version": "v1", "target": { "function": "u_audio_set_mute", "file": "drivers/usb/gadget/function/u_audio.c" }, "digest": { "function_hash": "215308480817715505961184227389814306807", "length": 479.0 }, "id": "CVE-2024-38628-01bca133" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@453d3fa9266e53f85377b911c19b9a4563fa88c0", "signature_version": "v1", "target": { "function": "set_active", "file": "drivers/usb/gadget/function/u_audio.c" }, "digest": { "function_hash": "264991785799399461301102423850887941291", "length": 330.0 }, "id": "CVE-2024-38628-07c5f517" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bea73b58ab67fe581037ad9cdb93c2557590c068", "signature_version": "v1", "target": { "function": "set_active", "file": "drivers/usb/gadget/function/u_audio.c" }, "digest": { "function_hash": "264991785799399461301102423850887941291", "length": 330.0 }, "id": "CVE-2024-38628-0ee6bb6f" }, { "signature_type": "Line", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bea73b58ab67fe581037ad9cdb93c2557590c068", "signature_version": "v1", "target": { "file": "drivers/usb/gadget/function/u_audio.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "163582016249283505634156244736480270790", "187261613872156955086007378898785103266", "149903300864936108083314923599608616050", "34423813890976237469538456718144574463", "38755810736215334143831964891195893972", "153910999747480152317894476157240644119", "32351934310783353606634652768230992194", "231244112118676169987115899834802424824", "95281997950794759441944414464899705489", "204845677056854479818126644674352225826", "206991002183793145064876194187682177720", "208116318372076403364461079833044016077", "252863739735324987529646667320449630090", "230293964059710100632653950311805724646", "238421350469874962683098780701906879746", "242423171356229453871762643080229337619", "27053438654341387843222813074778796976", "279493384184579494971510116356511450198", "234767846099672849135589686525442118208", "243832195769022194496548528712545188052", "170294617337606639349796356500078640920", "277310272753742508935972957549057292965", "42302090254292517083092613956451913967", "171520270174836298034881691185191853861", "253842809518115570313038210594368323482", "249090963428719547077844781438285430901", "93148120962007786893143733749758853433", "9451943824214085554018300425504929627", "109794139623419565262941682050193182369", "80104607429292215426332614213856950846", "313395607953650840444889800544196824911", "375826408391002051622561698073460890", "71775782451025539713786103504026062410", "175291095373284161444470862756304849629", "284995414203289489507630446758967994446", "211406217387960616976595622748451136933", "312452659567479346440846765662041471310", "58086482959700677049638411112299470955", "133454951506870404746486838649920660381" ] }, "id": "CVE-2024-38628-2b422fb0" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1b739388aa3f8dfb63a9fca777e6dfa6912d0464", "signature_version": "v1", "target": { "function": "u_audio_set_volume", "file": "drivers/usb/gadget/function/u_audio.c" }, "digest": { "function_hash": "176964909384423301541499687868369457543", "length": 526.0 }, "id": "CVE-2024-38628-2b858545" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1b739388aa3f8dfb63a9fca777e6dfa6912d0464", "signature_version": "v1", "target": { "function": "g_audio_setup", "file": "drivers/usb/gadget/function/u_audio.c" }, "digest": { "function_hash": "88613176286889242418545705172243262957", "length": 4926.0 }, "id": "CVE-2024-38628-34a2687b" }, { "signature_type": "Line", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@453d3fa9266e53f85377b911c19b9a4563fa88c0", "signature_version": "v1", "target": { "file": "drivers/usb/gadget/function/u_audio.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "163582016249283505634156244736480270790", "187261613872156955086007378898785103266", "149903300864936108083314923599608616050", "34423813890976237469538456718144574463", "38755810736215334143831964891195893972", "153910999747480152317894476157240644119", "32351934310783353606634652768230992194", "231244112118676169987115899834802424824", "95281997950794759441944414464899705489", "204845677056854479818126644674352225826", "206991002183793145064876194187682177720", "208116318372076403364461079833044016077", "252863739735324987529646667320449630090", "230293964059710100632653950311805724646", "238421350469874962683098780701906879746", "242423171356229453871762643080229337619", "27053438654341387843222813074778796976", "279493384184579494971510116356511450198", "234767846099672849135589686525442118208", "243832195769022194496548528712545188052", "170294617337606639349796356500078640920", "277310272753742508935972957549057292965", "42302090254292517083092613956451913967", "171520270174836298034881691185191853861", "253842809518115570313038210594368323482", "249090963428719547077844781438285430901", "93148120962007786893143733749758853433", "9451943824214085554018300425504929627", "109794139623419565262941682050193182369", "80104607429292215426332614213856950846", "313395607953650840444889800544196824911", "375826408391002051622561698073460890", "71775782451025539713786103504026062410", "175291095373284161444470862756304849629", "284995414203289489507630446758967994446", "211406217387960616976595622748451136933", "312452659567479346440846765662041471310", "58086482959700677049638411112299470955", "133454951506870404746486838649920660381" ] }, "id": "CVE-2024-38628-67cfa852" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@89e66809684485590ea0b32c3178e42cba36ac09", "signature_version": "v1", "target": { "function": "u_audio_set_mute", "file": "drivers/usb/gadget/function/u_audio.c" }, "digest": { "function_hash": "215308480817715505961184227389814306807", "length": 479.0 }, "id": "CVE-2024-38628-7ad7260e" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@453d3fa9266e53f85377b911c19b9a4563fa88c0", "signature_version": "v1", "target": { "function": "g_audio_setup", "file": "drivers/usb/gadget/function/u_audio.c" }, "digest": { "function_hash": "239977769633791502293019945558308054801", "length": 5006.0 }, "id": "CVE-2024-38628-7da037fa" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bea73b58ab67fe581037ad9cdb93c2557590c068", "signature_version": "v1", "target": { "function": "g_audio_setup", "file": "drivers/usb/gadget/function/u_audio.c" }, "digest": { "function_hash": "239977769633791502293019945558308054801", "length": 5006.0 }, "id": "CVE-2024-38628-80d2517e" }, { "signature_type": "Line", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1b739388aa3f8dfb63a9fca777e6dfa6912d0464", "signature_version": "v1", "target": { "file": "drivers/usb/gadget/function/u_audio.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "163582016249283505634156244736480270790", "187261613872156955086007378898785103266", "149903300864936108083314923599608616050", "34423813890976237469538456718144574463", "38755810736215334143831964891195893972", "153910999747480152317894476157240644119", "32351934310783353606634652768230992194", "231244112118676169987115899834802424824", "95281997950794759441944414464899705489", "204845677056854479818126644674352225826", "206991002183793145064876194187682177720", "208116318372076403364461079833044016077", "252863739735324987529646667320449630090", "230293964059710100632653950311805724646", "238421350469874962683098780701906879746", "242423171356229453871762643080229337619", "27053438654341387843222813074778796976", "279493384184579494971510116356511450198", "234767846099672849135589686525442118208", "243832195769022194496548528712545188052", "170294617337606639349796356500078640920", "277310272753742508935972957549057292965", "42302090254292517083092613956451913967", "171520270174836298034881691185191853861", "253842809518115570313038210594368323482", "249090963428719547077844781438285430901", "93148120962007786893143733749758853433", "9451943824214085554018300425504929627", "109794139623419565262941682050193182369", "80104607429292215426332614213856950846", "313395607953650840444889800544196824911", "375826408391002051622561698073460890", "71775782451025539713786103504026062410", "175291095373284161444470862756304849629", "284995414203289489507630446758967994446", "211406217387960616976595622748451136933", "312452659567479346440846765662041471310", "171886679986649670986814777709922958320", "140948614989033928506558659595742507986" ] }, "id": "CVE-2024-38628-8646dba7" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@89e66809684485590ea0b32c3178e42cba36ac09", "signature_version": "v1", "target": { "function": "u_audio_set_volume", "file": "drivers/usb/gadget/function/u_audio.c" }, "digest": { "function_hash": "176964909384423301541499687868369457543", "length": 526.0 }, "id": "CVE-2024-38628-93bd1035" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bea73b58ab67fe581037ad9cdb93c2557590c068", "signature_version": "v1", "target": { "function": "u_audio_set_mute", "file": "drivers/usb/gadget/function/u_audio.c" }, "digest": { "function_hash": "215308480817715505961184227389814306807", "length": 479.0 }, "id": "CVE-2024-38628-c21507e6" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@453d3fa9266e53f85377b911c19b9a4563fa88c0", "signature_version": "v1", "target": { "function": "u_audio_set_mute", "file": "drivers/usb/gadget/function/u_audio.c" }, "digest": { "function_hash": "215308480817715505961184227389814306807", "length": 479.0 }, "id": "CVE-2024-38628-d338c9ba" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@89e66809684485590ea0b32c3178e42cba36ac09", "signature_version": "v1", "target": { "function": "set_active", "file": "drivers/usb/gadget/function/u_audio.c" }, "digest": { "function_hash": "264991785799399461301102423850887941291", "length": 330.0 }, "id": "CVE-2024-38628-def04ad8" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@89e66809684485590ea0b32c3178e42cba36ac09", "signature_version": "v1", "target": { "function": "g_audio_setup", "file": "drivers/usb/gadget/function/u_audio.c" }, "digest": { "function_hash": "239977769633791502293019945558308054801", "length": 5006.0 }, "id": "CVE-2024-38628-e1b4f0b5" }, { "signature_type": "Line", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@89e66809684485590ea0b32c3178e42cba36ac09", "signature_version": "v1", "target": { "file": "drivers/usb/gadget/function/u_audio.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "163582016249283505634156244736480270790", "187261613872156955086007378898785103266", "149903300864936108083314923599608616050", "34423813890976237469538456718144574463", "38755810736215334143831964891195893972", "153910999747480152317894476157240644119", "32351934310783353606634652768230992194", "231244112118676169987115899834802424824", "95281997950794759441944414464899705489", "204845677056854479818126644674352225826", "206991002183793145064876194187682177720", "208116318372076403364461079833044016077", "252863739735324987529646667320449630090", "230293964059710100632653950311805724646", "238421350469874962683098780701906879746", "242423171356229453871762643080229337619", "27053438654341387843222813074778796976", "279493384184579494971510116356511450198", "234767846099672849135589686525442118208", "243832195769022194496548528712545188052", "170294617337606639349796356500078640920", "277310272753742508935972957549057292965", "42302090254292517083092613956451913967", "171520270174836298034881691185191853861", "253842809518115570313038210594368323482", "249090963428719547077844781438285430901", "93148120962007786893143733749758853433", "9451943824214085554018300425504929627", "109794139623419565262941682050193182369", "80104607429292215426332614213856950846", "313395607953650840444889800544196824911", "375826408391002051622561698073460890", "71775782451025539713786103504026062410", "175291095373284161444470862756304849629", "284995414203289489507630446758967994446", "211406217387960616976595622748451136933", "312452659567479346440846765662041471310", "58086482959700677049638411112299470955", "133454951506870404746486838649920660381" ] }, "id": "CVE-2024-38628-e2cfaac6" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@453d3fa9266e53f85377b911c19b9a4563fa88c0", "signature_version": "v1", "target": { "function": "u_audio_set_volume", "file": "drivers/usb/gadget/function/u_audio.c" }, "digest": { "function_hash": "176964909384423301541499687868369457543", "length": 526.0 }, "id": "CVE-2024-38628-eb38b768" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bea73b58ab67fe581037ad9cdb93c2557590c068", "signature_version": "v1", "target": { "function": "u_audio_set_volume", "file": "drivers/usb/gadget/function/u_audio.c" }, "digest": { "function_hash": "176964909384423301541499687868369457543", "length": 526.0 }, "id": "CVE-2024-38628-efee0d7d" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1b739388aa3f8dfb63a9fca777e6dfa6912d0464", "signature_version": "v1", "target": { "function": "set_active", "file": "drivers/usb/gadget/function/u_audio.c" }, "digest": { "function_hash": "264991785799399461301102423850887941291", "length": 330.0 }, "id": "CVE-2024-38628-f39239fd" } ]