CVE-2025-40165

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-40165
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40165.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-40165
Downstream
Published
2025-11-12T10:26:23Z
Modified
2025-11-12T21:27:16.269838Z
Summary
media: nxp: imx8-isi: m2m: Fix streaming cleanup on release
Details

In the Linux kernel, the following vulnerability has been resolved:

media: nxp: imx8-isi: m2m: Fix streaming cleanup on release

If streamon/streamoff calls are imbalanced, such as when exiting an application with Ctrl+C when streaming, the m2m usagecount will never reach zero and the ISI channel won't be freed. Besides from that, if the input line width is more than 2K, it will trigger a WARNON():

[ 59.222120] ------------[ cut here ]------------ [ 59.226758] WARNING: drivers/media/platform/nxp/imx8-isi/imx8-isi-hw.c:631 at mxcisichannelchain+0xa4/0x120, CPU#4: v4l2-ctl/654 [ 59.238569] Modules linked in: ap1302 [ 59.242231] CPU: 4 UID: 0 PID: 654 Comm: v4l2-ctl Not tainted 6.16.0-rc4-next-20250704-06511-gff0e002d480a-dirty #258 PREEMPT [ 59.253597] Hardware name: NXP i.MX95 15X15 board (DT) [ 59.258720] pstate: 80400009 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 59.265669] pc : mxcisichannelchain+0xa4/0x120 [ 59.270358] lr : mxcisichannelchain+0x44/0x120 [ 59.275047] sp : ffff8000848c3b40 [ 59.278348] x29: ffff8000848c3b40 x28: ffff0000859b4c98 x27: ffff800081939f00 [ 59.285472] x26: 000000000000000a x25: ffff0000859b4cb8 x24: 0000000000000001 [ 59.292597] x23: ffff0000816f4760 x22: ffff0000816f4258 x21: ffff000084ceb780 [ 59.299720] x20: ffff000084342ff8 x19: ffff000084340000 x18: 0000000000000000 [ 59.306845] x17: 0000000000000000 x16: 0000000000000000 x15: 0000ffffdb369e1c [ 59.313969] x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000 [ 59.321093] x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000 [ 59.328217] x8 : ffff8000848c3d48 x7 : ffff800081930b30 x6 : ffff800081930b30 [ 59.335340] x5 : ffff0000859b6000 x4 : ffff80008193ae80 x3 : ffff800081022420 [ 59.342464] x2 : ffff0000852f6900 x1 : 0000000000000001 x0 : ffff000084341000 [ 59.349590] Call trace: [ 59.352025] mxcisichannelchain+0xa4/0x120 (P) [ 59.356722] mxcisim2mstreamon+0x160/0x20c [ 59.361072] v4lstreamon+0x24/0x30 [ 59.364556] _videodoioctl+0x40c/0x4a0 [ 59.368560] videousercopy+0x2bc/0x690 [ 59.372382] videoioctl2+0x18/0x24 [ 59.375857] v4l2ioctl+0x40/0x60 [ 59.379168] _arm64sysioctl+0xac/0x104 [ 59.383172] invokesyscall+0x48/0x104 [ 59.386916] el0svccommon.constprop.0+0xc0/0xe0 [ 59.391613] doel0svc+0x1c/0x28 [ 59.394915] el0svc+0x34/0xf4 [ 59.397966] el0t64synchandler+0xa0/0xe4 [ 59.402143] el0t64sync+0x198/0x19c [ 59.405801] ---[ end trace 0000000000000000 ]---

Address this issue by moving the streaming preparation and cleanup to the vb2 .preparestreaming() and .unpreparestreaming() operations. This also simplifies the driver by allowing direct usage of the v4l2m2mioctlstreamon() and v4l2m2mioctlstreamoff() helpers.

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
cf21f328fcafacf4f96e7a30ef9dceede1076378
Fixed
50c721be2cff2bf8c9a5f1f4add35c2bbb1df302
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
cf21f328fcafacf4f96e7a30ef9dceede1076378
Fixed
e8b5f4d80775835cf8192d65138e9be1ff202847
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
cf21f328fcafacf4f96e7a30ef9dceede1076378
Fixed
b0d438c7b43314f9128e0dda5f83789e593e684a
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
cf21f328fcafacf4f96e7a30ef9dceede1076378
Fixed
178aa3360220231dd91e7dbc2eb984525886c9c1

Affected versions

v6.*

v6.10
v6.10-rc1
v6.10-rc2
v6.10-rc3
v6.10-rc4
v6.10-rc5
v6.10-rc6
v6.10-rc7
v6.11
v6.11-rc1
v6.11-rc2
v6.11-rc3
v6.11-rc4
v6.11-rc5
v6.11-rc6
v6.11-rc7
v6.12
v6.12-rc1
v6.12-rc2
v6.12-rc3
v6.12-rc4
v6.12-rc5
v6.12-rc6
v6.12-rc7
v6.12.1
v6.12.10
v6.12.11
v6.12.12
v6.12.13
v6.12.14
v6.12.15
v6.12.16
v6.12.17
v6.12.18
v6.12.19
v6.12.2
v6.12.20
v6.12.21
v6.12.22
v6.12.23
v6.12.24
v6.12.25
v6.12.26
v6.12.27
v6.12.28
v6.12.29
v6.12.3
v6.12.30
v6.12.31
v6.12.32
v6.12.33
v6.12.34
v6.12.35
v6.12.36
v6.12.37
v6.12.38
v6.12.39
v6.12.4
v6.12.40
v6.12.41
v6.12.42
v6.12.43
v6.12.44
v6.12.45
v6.12.46
v6.12.47
v6.12.48
v6.12.49
v6.12.5
v6.12.50
v6.12.51
v6.12.52
v6.12.53
v6.12.54
v6.12.6
v6.12.7
v6.12.8
v6.12.9
v6.13
v6.13-rc1
v6.13-rc2
v6.13-rc3
v6.13-rc4
v6.13-rc5
v6.13-rc6
v6.13-rc7
v6.14
v6.14-rc1
v6.14-rc2
v6.14-rc3
v6.14-rc4
v6.14-rc5
v6.14-rc6
v6.14-rc7
v6.15
v6.15-rc1
v6.15-rc2
v6.15-rc3
v6.15-rc4
v6.15-rc5
v6.15-rc6
v6.15-rc7
v6.16
v6.16-rc1
v6.16-rc2
v6.16-rc3
v6.16-rc4
v6.16-rc5
v6.16-rc6
v6.16-rc7
v6.17
v6.17-rc1
v6.17-rc2
v6.17-rc3
v6.17-rc4
v6.17-rc5
v6.17-rc6
v6.17-rc7
v6.17.1
v6.17.2
v6.17.3
v6.17.4
v6.3
v6.3-rc3
v6.3-rc4
v6.3-rc5
v6.3-rc6
v6.3-rc7
v6.4
v6.4-rc1
v6.4-rc2
v6.4-rc3
v6.4-rc4
v6.4-rc5
v6.4-rc6
v6.4-rc7
v6.5
v6.5-rc1
v6.5-rc2
v6.5-rc3
v6.5-rc4
v6.5-rc5
v6.5-rc6
v6.5-rc7
v6.6
v6.6-rc1
v6.6-rc2
v6.6-rc3
v6.6-rc4
v6.6-rc5
v6.6-rc6
v6.6-rc7
v6.6.1
v6.6.10
v6.6.100
v6.6.101
v6.6.102
v6.6.103
v6.6.104
v6.6.105
v6.6.106
v6.6.107
v6.6.108
v6.6.109
v6.6.11
v6.6.110
v6.6.111
v6.6.112
v6.6.113
v6.6.12
v6.6.13
v6.6.14
v6.6.15
v6.6.16
v6.6.17
v6.6.18
v6.6.19
v6.6.2
v6.6.20
v6.6.21
v6.6.22
v6.6.23
v6.6.24
v6.6.25
v6.6.26
v6.6.27
v6.6.28
v6.6.29
v6.6.3
v6.6.30
v6.6.31
v6.6.32
v6.6.33
v6.6.34
v6.6.35
v6.6.36
v6.6.37
v6.6.38
v6.6.39
v6.6.4
v6.6.40
v6.6.41
v6.6.42
v6.6.43
v6.6.44
v6.6.45
v6.6.46
v6.6.47
v6.6.48
v6.6.49
v6.6.5
v6.6.50
v6.6.51
v6.6.52
v6.6.53
v6.6.54
v6.6.55
v6.6.56
v6.6.57
v6.6.58
v6.6.59
v6.6.6
v6.6.60
v6.6.61
v6.6.62
v6.6.63
v6.6.64
v6.6.65
v6.6.66
v6.6.67
v6.6.68
v6.6.69
v6.6.7
v6.6.70
v6.6.71
v6.6.72
v6.6.73
v6.6.74
v6.6.75
v6.6.76
v6.6.77
v6.6.78
v6.6.79
v6.6.8
v6.6.80
v6.6.81
v6.6.82
v6.6.83
v6.6.84
v6.6.85
v6.6.86
v6.6.87
v6.6.88
v6.6.89
v6.6.9
v6.6.90
v6.6.91
v6.6.92
v6.6.93
v6.6.94
v6.6.95
v6.6.96
v6.6.97
v6.6.98
v6.6.99
v6.7
v6.7-rc1
v6.7-rc2
v6.7-rc3
v6.7-rc4
v6.7-rc5
v6.7-rc6
v6.7-rc7
v6.7-rc8
v6.8
v6.8-rc1
v6.8-rc2
v6.8-rc3
v6.8-rc4
v6.8-rc5
v6.8-rc6
v6.8-rc7
v6.9
v6.9-rc1
v6.9-rc2
v6.9-rc3
v6.9-rc4
v6.9-rc5
v6.9-rc6
v6.9-rc7

Database specific

vanir_signatures

[
    {
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@50c721be2cff2bf8c9a5f1f4add35c2bbb1df302",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "171708120960429593250162347367332083523",
                "51271553808887355035907234376122055759",
                "206314885419075289623760074308883356406",
                "244017818731682400319046905736885953325",
                "99531007882519514462835919536546504203",
                "270661759259167337751645291244345389706",
                "27883270877486859223545608004957266357",
                "318375883058142806320024206887444841001",
                "275165132969149222327962518161224990139",
                "174857934366459339102308326990719374274",
                "103653351185811399978786196349995940946",
                "312313424199121853165542617472817647907",
                "272511007824372586993805381765386934771",
                "143746458947703267526317350085948873996",
                "16535192454637262116690949476058646291",
                "201102627854266101301981088938483572892",
                "14640357079652037615372553217368962709",
                "264880083464902733479089205707344485963",
                "332124154221779684709442097109290976237",
                "165700921646249384182403112226701148102",
                "179362909248329108479368142581854380341",
                "197518970598595731395964225849268808732",
                "86439526864382091371941304451819427757",
                "103099590473231194093383231445544778946",
                "58331894436697607649574703197417287667",
                "308954154261029724001944256300583419229",
                "339802696914249850996020661856422185016",
                "110764472650658107827591420132779538391",
                "194976294039029269717819062994738343448",
                "240629291281511719109101108271181295364",
                "214539791770193985354716816910824982508",
                "330359887515576420840855503243954565738",
                "232641180479684712761766423674838200792",
                "234333539335676908507104608526246064707",
                "241644572752055462568391188903274638323",
                "214878067459487157842559033171503306425",
                "305696036476819734648993861031272245105",
                "318420570791819118416909585170583641219",
                "73404878385303764851959197986533442686",
                "282033326496819666805665084993338427400",
                "236786049487279651422051184210182226845",
                "227702032941984663854422743389868048867",
                "9631804263748960571660523653267055857",
                "294740349317212557000160531293228809290",
                "118825479877812245625862594792492753471",
                "100506906485440388965960843717388718788",
                "168034825589880561438184074702537138749",
                "160663723737729296152972781162891782876",
                "235321040674690743477686433120696875187",
                "81843838938633872080017091987407597610",
                "31589730789006018986270313358178382807",
                "283151904242437561618128977744810911376",
                "319411832453987954399528122401016830134",
                "248410074266865177786593499493054111866",
                "10416474738207145483426601265908033278",
                "22542075230530294381533537066454204562",
                "19675764525940703553514287750474283587",
                "182225494207826440315742483368114705910",
                "182793787784203207789506053716899594181",
                "297187546368300242915818557392731368221",
                "204237420555714460107204585291304625496",
                "199886893214979527841364886667560125619",
                "208295558957609087172022829394992088042",
                "282320955178128311007140065314882348059",
                "335442176238163468821524060487908416709",
                "257996859433506311445720985266501655717",
                "39875562987069723681249780497073186063",
                "219320581710645587865454422245954965140",
                "14397194389686159968062418562045494466",
                "222091278312145159896548931935050273212",
                "258786221607332834825403729141615745928",
                "145781866909626675615501170883513236182",
                "309599677405283957665793678471351939029",
                "70774238007770794282445647165833535425",
                "9165459032243460949158584844997680876",
                "229451837977797826939157805695642017115",
                "47506207047612895917546016177782054566",
                "77927387771107857756358491222764595985",
                "179362909248329108479368142581854380341",
                "174313815309844932812126590094382662582",
                "246946941766627317195473647113585623019",
                "314288257394917862573532675519190154224",
                "173052541973844720000311900558705089309",
                "317412219912691401061421424619061983828",
                "41363642014574778894864156964540298310",
                "158468582841637173521182926774113206292",
                "124901237964993351838900394522315351091",
                "130368631201513961228741494985292044234",
                "53734966680161606899254008695831299216",
                "184209819456586850223664389883459204184",
                "132091166018646115464639157758700353805",
                "171366243627882701630733901817956634980",
                "209307969050949501359707598939868796748",
                "123937333432866224679027126800474082894",
                "172873783494047304716765320272835396237",
                "129480105123388268714475898910409154085",
                "187441771279128592550644816843394319783",
                "95221092755383993134817823911984649847",
                "328076565879196330564835984097151596167",
                "301238352055559047147692350802739216623",
                "134499828834515239011050464124576795483",
                "48479621388864422368476165365773508633",
                "335990949766929934915958277966414181081",
                "20652119228269062475452818493232214171",
                "222404077975084859202263111110889120379",
                "238408428395268994589317206388620929275",
                "17734831951259156403843674359201549768"
            ]
        },
        "signature_type": "Line",
        "deprecated": false,
        "target": {
            "file": "drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c"
        },
        "id": "CVE-2025-40165-1e2e97e8"
    },
    {
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b0d438c7b43314f9128e0dda5f83789e593e684a",
        "digest": {
            "length": 1459.0,
            "function_hash": "11048214427992230649011392410987417986"
        },
        "signature_type": "Function",
        "deprecated": false,
        "target": {
            "function": "mxc_isi_m2m_streamon",
            "file": "drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c"
        },
        "id": "CVE-2025-40165-3390f3b9"
    },
    {
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@178aa3360220231dd91e7dbc2eb984525886c9c1",
        "digest": {
            "length": 1447.0,
            "function_hash": "339527160086480181674761654140183618774"
        },
        "signature_type": "Function",
        "deprecated": false,
        "target": {
            "function": "mxc_isi_m2m_streamon",
            "file": "drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c"
        },
        "id": "CVE-2025-40165-55794da0"
    },
    {
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@178aa3360220231dd91e7dbc2eb984525886c9c1",
        "digest": {
            "length": 664.0,
            "function_hash": "3138969041546113219159757494128109089"
        },
        "signature_type": "Function",
        "deprecated": false,
        "target": {
            "function": "mxc_isi_m2m_streamoff",
            "file": "drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c"
        },
        "id": "CVE-2025-40165-9847ddae"
    },
    {
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e8b5f4d80775835cf8192d65138e9be1ff202847",
        "digest": {
            "length": 1447.0,
            "function_hash": "339527160086480181674761654140183618774"
        },
        "signature_type": "Function",
        "deprecated": false,
        "target": {
            "function": "mxc_isi_m2m_streamon",
            "file": "drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c"
        },
        "id": "CVE-2025-40165-a149affd"
    },
    {
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b0d438c7b43314f9128e0dda5f83789e593e684a",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "171708120960429593250162347367332083523",
                "51271553808887355035907234376122055759",
                "206314885419075289623760074308883356406",
                "244017818731682400319046905736885953325",
                "99531007882519514462835919536546504203",
                "270661759259167337751645291244345389706",
                "27883270877486859223545608004957266357",
                "318375883058142806320024206887444841001",
                "275165132969149222327962518161224990139",
                "174857934366459339102308326990719374274",
                "301195429063529221348457117033441895692",
                "45560971120300667757467819896074010831",
                "244309883869558696522517932437242094186",
                "231488106246434847093221476088583247153",
                "98902991383919916645179427645585236015",
                "16535192454637262116690949476058646291",
                "201102627854266101301981088938483572892",
                "14640357079652037615372553217368962709",
                "264880083464902733479089205707344485963",
                "332124154221779684709442097109290976237",
                "165700921646249384182403112226701148102",
                "179362909248329108479368142581854380341",
                "197518970598595731395964225849268808732",
                "86439526864382091371941304451819427757",
                "103099590473231194093383231445544778946",
                "58331894436697607649574703197417287667",
                "308954154261029724001944256300583419229",
                "114977781177440343389217830952907371280",
                "175835136999699727108187510385760240640",
                "138771200356635882017936105825629459126",
                "314715973618505321899730885973382424872",
                "240629291281511719109101108271181295364",
                "214539791770193985354716816910824982508",
                "330359887515576420840855503243954565738",
                "232641180479684712761766423674838200792",
                "234333539335676908507104608526246064707",
                "303698253034575292624912115571472964694",
                "97080775793813159168580829774425480645",
                "256808227170161480258385847246484930296",
                "238146202795197911830647947127495784586",
                "202194359782375074334672428262473755099",
                "8048694802180102759542037694045504160",
                "89142603057208109897370987925510589611",
                "227702032941984663854422743389868048867",
                "9631804263748960571660523653267055857",
                "294740349317212557000160531293228809290",
                "118825479877812245625862594792492753471",
                "100506906485440388965960843717388718788",
                "168034825589880561438184074702537138749",
                "95345576715706047274616186365184360223",
                "232739062492374966182854033307601078574",
                "187915654077778160962359921402565354776",
                "37239139051016315219501020462572016657",
                "283151904242437561618128977744810911376",
                "319411832453987954399528122401016830134",
                "248410074266865177786593499493054111866",
                "10416474738207145483426601265908033278",
                "22542075230530294381533537066454204562",
                "19675764525940703553514287750474283587",
                "182225494207826440315742483368114705910",
                "182793787784203207789506053716899594181",
                "297187546368300242915818557392731368221",
                "204237420555714460107204585291304625496",
                "199886893214979527841364886667560125619",
                "208295558957609087172022829394992088042",
                "282320955178128311007140065314882348059",
                "335442176238163468821524060487908416709",
                "257996859433506311445720985266501655717",
                "39875562987069723681249780497073186063",
                "219320581710645587865454422245954965140",
                "14397194389686159968062418562045494466",
                "222091278312145159896548931935050273212",
                "258786221607332834825403729141615745928",
                "145781866909626675615501170883513236182",
                "309599677405283957665793678471351939029",
                "70774238007770794282445647165833535425",
                "9165459032243460949158584844997680876",
                "229451837977797826939157805695642017115",
                "47506207047612895917546016177782054566",
                "77927387771107857756358491222764595985",
                "179362909248329108479368142581854380341",
                "174313815309844932812126590094382662582",
                "246946941766627317195473647113585623019",
                "314288257394917862573532675519190154224",
                "173052541973844720000311900558705089309",
                "317412219912691401061421424619061983828",
                "41363642014574778894864156964540298310",
                "158468582841637173521182926774113206292",
                "124901237964993351838900394522315351091",
                "130368631201513961228741494985292044234",
                "53734966680161606899254008695831299216",
                "184209819456586850223664389883459204184",
                "132091166018646115464639157758700353805",
                "171366243627882701630733901817956634980",
                "209307969050949501359707598939868796748",
                "123937333432866224679027126800474082894",
                "172873783494047304716765320272835396237",
                "129480105123388268714475898910409154085",
                "187441771279128592550644816843394319783",
                "95221092755383993134817823911984649847",
                "328076565879196330564835984097151596167",
                "301238352055559047147692350802739216623",
                "134499828834515239011050464124576795483",
                "48479621388864422368476165365773508633",
                "335990949766929934915958277966414181081",
                "20652119228269062475452818493232214171",
                "222404077975084859202263111110889120379",
                "238408428395268994589317206388620929275",
                "17734831951259156403843674359201549768"
            ]
        },
        "signature_type": "Line",
        "deprecated": false,
        "target": {
            "file": "drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c"
        },
        "id": "CVE-2025-40165-bb2a498e"
    },
    {
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@178aa3360220231dd91e7dbc2eb984525886c9c1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "171708120960429593250162347367332083523",
                "51271553808887355035907234376122055759",
                "206314885419075289623760074308883356406",
                "244017818731682400319046905736885953325",
                "99531007882519514462835919536546504203",
                "270661759259167337751645291244345389706",
                "27883270877486859223545608004957266357",
                "318375883058142806320024206887444841001",
                "275165132969149222327962518161224990139",
                "174857934366459339102308326990719374274",
                "301195429063529221348457117033441895692",
                "45560971120300667757467819896074010831",
                "244309883869558696522517932437242094186",
                "231488106246434847093221476088583247153",
                "98902991383919916645179427645585236015",
                "16535192454637262116690949476058646291",
                "201102627854266101301981088938483572892",
                "14640357079652037615372553217368962709",
                "264880083464902733479089205707344485963",
                "332124154221779684709442097109290976237",
                "119833525857852261712230798565985240473",
                "256884623762046190525800701943907788930",
                "332420221981817669368389360772314941498",
                "225048249485937549781636789643876831211",
                "103099590473231194093383231445544778946",
                "58331894436697607649574703197417287667",
                "308954154261029724001944256300583419229",
                "339802696914249850996020661856422185016",
                "110764472650658107827591420132779538391",
                "194976294039029269717819062994738343448",
                "240629291281511719109101108271181295364",
                "214539791770193985354716816910824982508",
                "330359887515576420840855503243954565738",
                "232641180479684712761766423674838200792",
                "234333539335676908507104608526246064707",
                "241644572752055462568391188903274638323",
                "214878067459487157842559033171503306425",
                "305696036476819734648993861031272245105",
                "318420570791819118416909585170583641219",
                "73404878385303764851959197986533442686",
                "282033326496819666805665084993338427400",
                "236786049487279651422051184210182226845",
                "227702032941984663854422743389868048867",
                "9631804263748960571660523653267055857",
                "294740349317212557000160531293228809290",
                "118825479877812245625862594792492753471",
                "100506906485440388965960843717388718788",
                "168034825589880561438184074702537138749",
                "160663723737729296152972781162891782876",
                "235321040674690743477686433120696875187",
                "81843838938633872080017091987407597610",
                "31589730789006018986270313358178382807",
                "283151904242437561618128977744810911376",
                "319411832453987954399528122401016830134",
                "248410074266865177786593499493054111866",
                "10416474738207145483426601265908033278",
                "22542075230530294381533537066454204562",
                "19675764525940703553514287750474283587",
                "182225494207826440315742483368114705910",
                "182793787784203207789506053716899594181",
                "297187546368300242915818557392731368221",
                "204237420555714460107204585291304625496",
                "199886893214979527841364886667560125619",
                "208295558957609087172022829394992088042",
                "282320955178128311007140065314882348059",
                "335442176238163468821524060487908416709",
                "257996859433506311445720985266501655717",
                "39875562987069723681249780497073186063",
                "219320581710645587865454422245954965140",
                "14397194389686159968062418562045494466",
                "222091278312145159896548931935050273212",
                "258786221607332834825403729141615745928",
                "145781866909626675615501170883513236182",
                "309599677405283957665793678471351939029",
                "70774238007770794282445647165833535425",
                "9165459032243460949158584844997680876",
                "229451837977797826939157805695642017115",
                "47506207047612895917546016177782054566",
                "152225525481056899132889704842435616526",
                "256884623762046190525800701943907788930",
                "10094377296302843484474297274704432736",
                "339029714170019301607779581399997971380",
                "314288257394917862573532675519190154224",
                "173052541973844720000311900558705089309",
                "317412219912691401061421424619061983828",
                "41363642014574778894864156964540298310",
                "158468582841637173521182926774113206292",
                "124901237964993351838900394522315351091",
                "130368631201513961228741494985292044234",
                "53734966680161606899254008695831299216",
                "184209819456586850223664389883459204184",
                "132091166018646115464639157758700353805",
                "171366243627882701630733901817956634980",
                "209307969050949501359707598939868796748",
                "123937333432866224679027126800474082894",
                "172873783494047304716765320272835396237",
                "129480105123388268714475898910409154085",
                "187441771279128592550644816843394319783",
                "95221092755383993134817823911984649847",
                "328076565879196330564835984097151596167",
                "301238352055559047147692350802739216623",
                "134499828834515239011050464124576795483",
                "48479621388864422368476165365773508633",
                "335990949766929934915958277966414181081",
                "20652119228269062475452818493232214171",
                "222404077975084859202263111110889120379",
                "238408428395268994589317206388620929275",
                "17734831951259156403843674359201549768"
            ]
        },
        "signature_type": "Line",
        "deprecated": false,
        "target": {
            "file": "drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c"
        },
        "id": "CVE-2025-40165-be1aecbb"
    },
    {
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e8b5f4d80775835cf8192d65138e9be1ff202847",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "171708120960429593250162347367332083523",
                "51271553808887355035907234376122055759",
                "206314885419075289623760074308883356406",
                "244017818731682400319046905736885953325",
                "99531007882519514462835919536546504203",
                "270661759259167337751645291244345389706",
                "27883270877486859223545608004957266357",
                "318375883058142806320024206887444841001",
                "275165132969149222327962518161224990139",
                "174857934366459339102308326990719374274",
                "103653351185811399978786196349995940946",
                "312313424199121853165542617472817647907",
                "272511007824372586993805381765386934771",
                "143746458947703267526317350085948873996",
                "16535192454637262116690949476058646291",
                "201102627854266101301981088938483572892",
                "14640357079652037615372553217368962709",
                "264880083464902733479089205707344485963",
                "332124154221779684709442097109290976237",
                "165700921646249384182403112226701148102",
                "179362909248329108479368142581854380341",
                "197518970598595731395964225849268808732",
                "86439526864382091371941304451819427757",
                "103099590473231194093383231445544778946",
                "58331894436697607649574703197417287667",
                "308954154261029724001944256300583419229",
                "339802696914249850996020661856422185016",
                "110764472650658107827591420132779538391",
                "194976294039029269717819062994738343448",
                "240629291281511719109101108271181295364",
                "214539791770193985354716816910824982508",
                "330359887515576420840855503243954565738",
                "232641180479684712761766423674838200792",
                "234333539335676908507104608526246064707",
                "241644572752055462568391188903274638323",
                "214878067459487157842559033171503306425",
                "305696036476819734648993861031272245105",
                "318420570791819118416909585170583641219",
                "73404878385303764851959197986533442686",
                "282033326496819666805665084993338427400",
                "236786049487279651422051184210182226845",
                "227702032941984663854422743389868048867",
                "9631804263748960571660523653267055857",
                "294740349317212557000160531293228809290",
                "118825479877812245625862594792492753471",
                "100506906485440388965960843717388718788",
                "168034825589880561438184074702537138749",
                "160663723737729296152972781162891782876",
                "235321040674690743477686433120696875187",
                "81843838938633872080017091987407597610",
                "31589730789006018986270313358178382807",
                "283151904242437561618128977744810911376",
                "319411832453987954399528122401016830134",
                "248410074266865177786593499493054111866",
                "10416474738207145483426601265908033278",
                "22542075230530294381533537066454204562",
                "19675764525940703553514287750474283587",
                "182225494207826440315742483368114705910",
                "182793787784203207789506053716899594181",
                "297187546368300242915818557392731368221",
                "204237420555714460107204585291304625496",
                "199886893214979527841364886667560125619",
                "208295558957609087172022829394992088042",
                "282320955178128311007140065314882348059",
                "335442176238163468821524060487908416709",
                "257996859433506311445720985266501655717",
                "39875562987069723681249780497073186063",
                "219320581710645587865454422245954965140",
                "14397194389686159968062418562045494466",
                "222091278312145159896548931935050273212",
                "258786221607332834825403729141615745928",
                "145781866909626675615501170883513236182",
                "309599677405283957665793678471351939029",
                "70774238007770794282445647165833535425",
                "9165459032243460949158584844997680876",
                "229451837977797826939157805695642017115",
                "47506207047612895917546016177782054566",
                "77927387771107857756358491222764595985",
                "179362909248329108479368142581854380341",
                "174313815309844932812126590094382662582",
                "246946941766627317195473647113585623019",
                "314288257394917862573532675519190154224",
                "173052541973844720000311900558705089309",
                "317412219912691401061421424619061983828",
                "41363642014574778894864156964540298310",
                "158468582841637173521182926774113206292",
                "124901237964993351838900394522315351091",
                "130368631201513961228741494985292044234",
                "53734966680161606899254008695831299216",
                "184209819456586850223664389883459204184",
                "132091166018646115464639157758700353805",
                "171366243627882701630733901817956634980",
                "209307969050949501359707598939868796748",
                "123937333432866224679027126800474082894",
                "172873783494047304716765320272835396237",
                "129480105123388268714475898910409154085",
                "187441771279128592550644816843394319783",
                "95221092755383993134817823911984649847",
                "328076565879196330564835984097151596167",
                "301238352055559047147692350802739216623",
                "134499828834515239011050464124576795483",
                "48479621388864422368476165365773508633",
                "335990949766929934915958277966414181081",
                "20652119228269062475452818493232214171",
                "222404077975084859202263111110889120379",
                "238408428395268994589317206388620929275",
                "17734831951259156403843674359201549768"
            ]
        },
        "signature_type": "Line",
        "deprecated": false,
        "target": {
            "file": "drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c"
        },
        "id": "CVE-2025-40165-cd626d89"
    },
    {
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b0d438c7b43314f9128e0dda5f83789e593e684a",
        "digest": {
            "length": 664.0,
            "function_hash": "3138969041546113219159757494128109089"
        },
        "signature_type": "Function",
        "deprecated": false,
        "target": {
            "function": "mxc_isi_m2m_streamoff",
            "file": "drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c"
        },
        "id": "CVE-2025-40165-d966bac7"
    },
    {
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@50c721be2cff2bf8c9a5f1f4add35c2bbb1df302",
        "digest": {
            "length": 1447.0,
            "function_hash": "339527160086480181674761654140183618774"
        },
        "signature_type": "Function",
        "deprecated": false,
        "target": {
            "function": "mxc_isi_m2m_streamon",
            "file": "drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c"
        },
        "id": "CVE-2025-40165-e526cdcb"
    },
    {
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e8b5f4d80775835cf8192d65138e9be1ff202847",
        "digest": {
            "length": 664.0,
            "function_hash": "3138969041546113219159757494128109089"
        },
        "signature_type": "Function",
        "deprecated": false,
        "target": {
            "function": "mxc_isi_m2m_streamoff",
            "file": "drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c"
        },
        "id": "CVE-2025-40165-f0ca4b14"
    },
    {
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@50c721be2cff2bf8c9a5f1f4add35c2bbb1df302",
        "digest": {
            "length": 664.0,
            "function_hash": "3138969041546113219159757494128109089"
        },
        "signature_type": "Function",
        "deprecated": false,
        "target": {
            "function": "mxc_isi_m2m_streamoff",
            "file": "drivers/media/platform/nxp/imx8-isi/imx8-isi-m2m.c"
        },
        "id": "CVE-2025-40165-ff6f1c42"
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.4.0
Fixed
6.6.114
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.55
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.17.5