In the Linux kernel, the following vulnerability has been resolved:
comedi: Fix initialization of data for instructions that write to subdevice
Some Comedi subdevice instruction handlers are known to access
instruction data elements beyond the first insn->n elements in some
cases. The do_insn_ioctl() and do_insnlist_ioctl() functions
allocate at least MIN_SAMPLES (16) data elements to deal with this,
but they do not initialize all of that. For Comedi instruction codes
that write to the subdevice, the first insn->n data elements are
copied from user-space, but the remaining elements are left
uninitialized. That could be a problem if the subdevice instruction
handler reads the uninitialized data. Ensure that the first
MIN_SAMPLES elements are initialized before calling these instruction
handlers, filling the uncopied elements with 0. For
do_insnlist_ioctl(), the same data buffer elements are used for
handling a list of instructions, so ensure the first MIN_SAMPLES
elements are initialized for each instruction that writes to the
subdevice.
[
{
"deprecated": false,
"digest": {
"line_hashes": [
"141637272358677486075633413106078410450",
"127683265838905458255980409455907285870",
"65183304612822075190573016821434128332",
"78597311245686328531514297154643632319",
"41935415862703762833245611235331979687",
"276135487632750974274631258786196214136",
"92578186185265775751543619351551183018",
"201152193248801551088696323224139087166",
"27929457455425428174278460913458478294",
"214919151542394721514493195409271582824",
"70326051649901058729926453335112313644",
"136689862210028744041743821948100185306",
"236278188925262010520806453039913504926",
"165946173518942593100328293642449022579",
"106824888457304207016490672192698888279",
"121669435959800869912474878233125499174",
"50088290692999492824030352268085479067",
"262323612354627944170761304317485833611",
"175677708858614003701182015696780333326",
"338467522240788245507751508447235077151",
"214919151542394721514493195409271582824",
"233273895083362790691806333265040196424",
"99138746882552117573008796438633673235"
],
"threshold": 0.9
},
"signature_version": "v1",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fe8713fb4e4e82a4f91910d9a41bf0613e69a0b9",
"target": {
"file": "drivers/comedi/comedi_fops.c"
},
"id": "CVE-2025-38478-06f952a0"
},
{
"deprecated": false,
"digest": {
"function_hash": "266940936836484031291044569589584832339",
"length": 873.0
},
"signature_version": "v1",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@673ee92bd2d31055bca98a1d96b653f5284289c4",
"target": {
"function": "do_insn_ioctl",
"file": "drivers/comedi/comedi_fops.c"
},
"id": "CVE-2025-38478-4b469444"
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"141637272358677486075633413106078410450",
"127683265838905458255980409455907285870",
"65183304612822075190573016821434128332",
"78597311245686328531514297154643632319",
"41935415862703762833245611235331979687",
"276135487632750974274631258786196214136",
"92578186185265775751543619351551183018",
"201152193248801551088696323224139087166",
"27929457455425428174278460913458478294",
"214919151542394721514493195409271582824",
"70326051649901058729926453335112313644",
"136689862210028744041743821948100185306",
"236278188925262010520806453039913504926",
"165946173518942593100328293642449022579",
"106824888457304207016490672192698888279",
"121669435959800869912474878233125499174",
"50088290692999492824030352268085479067",
"262323612354627944170761304317485833611",
"175677708858614003701182015696780333326",
"338467522240788245507751508447235077151",
"214919151542394721514493195409271582824",
"233273895083362790691806333265040196424",
"99138746882552117573008796438633673235"
],
"threshold": 0.9
},
"signature_version": "v1",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@13e4d9038a1e869445a996a3f604a84ef52fe8f4",
"target": {
"file": "drivers/staging/comedi/comedi_fops.c"
},
"id": "CVE-2025-38478-53804597"
},
{
"deprecated": false,
"digest": {
"function_hash": "301948504092924646381214452740550795434",
"length": 920.0
},
"signature_version": "v1",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6f38c6380c3b38a05032b8881e41137385a6ce02",
"target": {
"function": "do_insn_ioctl",
"file": "drivers/staging/comedi/comedi_fops.c"
},
"id": "CVE-2025-38478-538543e5"
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"141637272358677486075633413106078410450",
"127683265838905458255980409455907285870",
"65183304612822075190573016821434128332",
"78597311245686328531514297154643632319",
"41935415862703762833245611235331979687",
"276135487632750974274631258786196214136",
"92578186185265775751543619351551183018",
"201152193248801551088696323224139087166",
"27929457455425428174278460913458478294",
"214919151542394721514493195409271582824",
"70326051649901058729926453335112313644",
"136689862210028744041743821948100185306",
"236278188925262010520806453039913504926",
"165946173518942593100328293642449022579",
"106824888457304207016490672192698888279",
"121669435959800869912474878233125499174",
"50088290692999492824030352268085479067",
"262323612354627944170761304317485833611",
"175677708858614003701182015696780333326",
"338467522240788245507751508447235077151",
"214919151542394721514493195409271582824",
"233273895083362790691806333265040196424",
"99138746882552117573008796438633673235"
],
"threshold": 0.9
},
"signature_version": "v1",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@46d8c744136ce2454aa4c35c138cc06817f92b8e",
"target": {
"file": "drivers/comedi/comedi_fops.c"
},
"id": "CVE-2025-38478-69b5fdae"
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"141637272358677486075633413106078410450",
"127683265838905458255980409455907285870",
"65183304612822075190573016821434128332",
"78597311245686328531514297154643632319",
"41935415862703762833245611235331979687",
"276135487632750974274631258786196214136",
"92578186185265775751543619351551183018",
"201152193248801551088696323224139087166",
"27929457455425428174278460913458478294",
"214919151542394721514493195409271582824",
"70326051649901058729926453335112313644",
"136689862210028744041743821948100185306",
"236278188925262010520806453039913504926",
"165946173518942593100328293642449022579",
"106824888457304207016490672192698888279",
"121669435959800869912474878233125499174",
"50088290692999492824030352268085479067",
"262323612354627944170761304317485833611",
"175677708858614003701182015696780333326",
"338467522240788245507751508447235077151",
"214919151542394721514493195409271582824",
"233273895083362790691806333265040196424",
"99138746882552117573008796438633673235"
],
"threshold": 0.9
},
"signature_version": "v1",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c42116dc70af6664526f7aa82cf937824ab42649",
"target": {
"file": "drivers/comedi/comedi_fops.c"
},
"id": "CVE-2025-38478-76876b81"
},
{
"deprecated": false,
"digest": {
"function_hash": "22806301683333131030411860798157074548",
"length": 1275.0
},
"signature_version": "v1",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@020eed5681d0f9bced73970368078a92d6cfaa9c",
"target": {
"function": "do_insnlist_ioctl",
"file": "drivers/comedi/comedi_fops.c"
},
"id": "CVE-2025-38478-7899df4e"
},
{
"deprecated": false,
"digest": {
"function_hash": "266940936836484031291044569589584832339",
"length": 873.0
},
"signature_version": "v1",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@46d8c744136ce2454aa4c35c138cc06817f92b8e",
"target": {
"function": "do_insn_ioctl",
"file": "drivers/comedi/comedi_fops.c"
},
"id": "CVE-2025-38478-923710c7"
},
{
"deprecated": false,
"digest": {
"function_hash": "266940936836484031291044569589584832339",
"length": 873.0
},
"signature_version": "v1",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@13e4d9038a1e869445a996a3f604a84ef52fe8f4",
"target": {
"function": "do_insn_ioctl",
"file": "drivers/staging/comedi/comedi_fops.c"
},
"id": "CVE-2025-38478-9ebb492e"
},
{
"deprecated": false,
"digest": {
"function_hash": "266940936836484031291044569589584832339",
"length": 873.0
},
"signature_version": "v1",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@020eed5681d0f9bced73970368078a92d6cfaa9c",
"target": {
"function": "do_insn_ioctl",
"file": "drivers/comedi/comedi_fops.c"
},
"id": "CVE-2025-38478-9ffd84e1"
},
{
"deprecated": false,
"digest": {
"function_hash": "22806301683333131030411860798157074548",
"length": 1275.0
},
"signature_version": "v1",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@673ee92bd2d31055bca98a1d96b653f5284289c4",
"target": {
"function": "do_insnlist_ioctl",
"file": "drivers/comedi/comedi_fops.c"
},
"id": "CVE-2025-38478-a5ac4d22"
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"141637272358677486075633413106078410450",
"127683265838905458255980409455907285870",
"65183304612822075190573016821434128332",
"78597311245686328531514297154643632319",
"41935415862703762833245611235331979687",
"276135487632750974274631258786196214136",
"92578186185265775751543619351551183018",
"201152193248801551088696323224139087166",
"27929457455425428174278460913458478294",
"214919151542394721514493195409271582824",
"70326051649901058729926453335112313644",
"136689862210028744041743821948100185306",
"236278188925262010520806453039913504926",
"165946173518942593100328293642449022579",
"106824888457304207016490672192698888279",
"121669435959800869912474878233125499174",
"50088290692999492824030352268085479067",
"262323612354627944170761304317485833611",
"175677708858614003701182015696780333326",
"338467522240788245507751508447235077151",
"214919151542394721514493195409271582824",
"233273895083362790691806333265040196424",
"99138746882552117573008796438633673235"
],
"threshold": 0.9
},
"signature_version": "v1",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@673ee92bd2d31055bca98a1d96b653f5284289c4",
"target": {
"file": "drivers/comedi/comedi_fops.c"
},
"id": "CVE-2025-38478-ad225e63"
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"7722798559619478099749214758586774806",
"96498542434802190161997289092770914270",
"183089324693360970397673494215359283937",
"37182077888151289554851809479162755886",
"41935415862703762833245611235331979687",
"276135487632750974274631258786196214136",
"92578186185265775751543619351551183018",
"201152193248801551088696323224139087166",
"27929457455425428174278460913458478294",
"214919151542394721514493195409271582824",
"70326051649901058729926453335112313644",
"136689862210028744041743821948100185306",
"236278188925262010520806453039913504926",
"165946173518942593100328293642449022579",
"106824888457304207016490672192698888279",
"121669435959800869912474878233125499174",
"50088290692999492824030352268085479067",
"262323612354627944170761304317485833611",
"175677708858614003701182015696780333326",
"150184673293416379789638791169170754123",
"214919151542394721514493195409271582824",
"313668590650378262846675701632668420895",
"71863486682491486916903041240529707786"
],
"threshold": 0.9
},
"signature_version": "v1",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6f38c6380c3b38a05032b8881e41137385a6ce02",
"target": {
"file": "drivers/staging/comedi/comedi_fops.c"
},
"id": "CVE-2025-38478-bcf835d1"
},
{
"deprecated": false,
"digest": {
"function_hash": "22806301683333131030411860798157074548",
"length": 1275.0
},
"signature_version": "v1",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@46d8c744136ce2454aa4c35c138cc06817f92b8e",
"target": {
"function": "do_insnlist_ioctl",
"file": "drivers/comedi/comedi_fops.c"
},
"id": "CVE-2025-38478-d43bd3e1"
},
{
"deprecated": false,
"digest": {
"function_hash": "199536617743388958768901383684726829751",
"length": 1652.0
},
"signature_version": "v1",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6f38c6380c3b38a05032b8881e41137385a6ce02",
"target": {
"function": "do_insnlist_ioctl",
"file": "drivers/staging/comedi/comedi_fops.c"
},
"id": "CVE-2025-38478-d6415d3d"
},
{
"deprecated": false,
"digest": {
"function_hash": "22806301683333131030411860798157074548",
"length": 1275.0
},
"signature_version": "v1",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@13e4d9038a1e869445a996a3f604a84ef52fe8f4",
"target": {
"function": "do_insnlist_ioctl",
"file": "drivers/staging/comedi/comedi_fops.c"
},
"id": "CVE-2025-38478-d86defb5"
},
{
"deprecated": false,
"digest": {
"function_hash": "266940936836484031291044569589584832339",
"length": 873.0
},
"signature_version": "v1",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fe8713fb4e4e82a4f91910d9a41bf0613e69a0b9",
"target": {
"function": "do_insn_ioctl",
"file": "drivers/comedi/comedi_fops.c"
},
"id": "CVE-2025-38478-d906c6d6"
},
{
"deprecated": false,
"digest": {
"function_hash": "22806301683333131030411860798157074548",
"length": 1275.0
},
"signature_version": "v1",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c42116dc70af6664526f7aa82cf937824ab42649",
"target": {
"function": "do_insnlist_ioctl",
"file": "drivers/comedi/comedi_fops.c"
},
"id": "CVE-2025-38478-db52adfb"
},
{
"deprecated": false,
"digest": {
"function_hash": "22806301683333131030411860798157074548",
"length": 1275.0
},
"signature_version": "v1",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fe8713fb4e4e82a4f91910d9a41bf0613e69a0b9",
"target": {
"function": "do_insnlist_ioctl",
"file": "drivers/comedi/comedi_fops.c"
},
"id": "CVE-2025-38478-eb346e2b"
},
{
"deprecated": false,
"digest": {
"function_hash": "266940936836484031291044569589584832339",
"length": 873.0
},
"signature_version": "v1",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c42116dc70af6664526f7aa82cf937824ab42649",
"target": {
"function": "do_insn_ioctl",
"file": "drivers/comedi/comedi_fops.c"
},
"id": "CVE-2025-38478-ecbb97f3"
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"141637272358677486075633413106078410450",
"127683265838905458255980409455907285870",
"65183304612822075190573016821434128332",
"78597311245686328531514297154643632319",
"41935415862703762833245611235331979687",
"276135487632750974274631258786196214136",
"92578186185265775751543619351551183018",
"201152193248801551088696323224139087166",
"27929457455425428174278460913458478294",
"214919151542394721514493195409271582824",
"70326051649901058729926453335112313644",
"136689862210028744041743821948100185306",
"236278188925262010520806453039913504926",
"165946173518942593100328293642449022579",
"106824888457304207016490672192698888279",
"121669435959800869912474878233125499174",
"50088290692999492824030352268085479067",
"262323612354627944170761304317485833611",
"175677708858614003701182015696780333326",
"338467522240788245507751508447235077151",
"214919151542394721514493195409271582824",
"233273895083362790691806333265040196424",
"99138746882552117573008796438633673235"
],
"threshold": 0.9
},
"signature_version": "v1",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@020eed5681d0f9bced73970368078a92d6cfaa9c",
"target": {
"file": "drivers/comedi/comedi_fops.c"
},
"id": "CVE-2025-38478-f9695ba0"
}
]