CVE-2025-40208

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-40208
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40208.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-40208
Downstream
Published
2025-11-12T21:56:36Z
Modified
2025-11-13T03:18:55.373422Z
Summary
media: iris: fix module removal if firmware download failed
Details

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

media: iris: fix module removal if firmware download failed

Fix remove if firmware failed to load: qcom-iris aa00000.video-codec: Direct firmware load for qcom/vpu/vpu33_p4.mbn failed with error -2 qcom-iris aa00000.video-codec: firmware download failed qcom-iris aa00000.video-codec: core init failed

then: $ echo aa00000.video-codec > /sys/bus/platform/drivers/qcom-iris/unbind

Triggers: genpd genpd:1:aa00000.video-codec: Runtime PM usage count underflow! ------------[ cut here ]------------ videoccmvs0clk already disabled WARNING: drivers/clk/clk.c:1206 at clkcoredisable+0xa4/0xac, CPU#1: sh/542 <snip> pc : clkcoredisable+0xa4/0xac lr : clkcoredisable+0xa4/0xac <snip> Call trace: clkcoredisable+0xa4/0xac (P) clkdisable+0x30/0x4c irisdisableunprepareclock+0x20/0x48 [qcomiris] irisvpupoweroffhw+0x48/0x58 [qcomiris] irisvpu33poweroffhardware+0x44/0x230 [qcomiris] irisvpupoweroff+0x34/0x84 [qcomiris] iriscoredeinit+0x44/0xc8 [qcomiris] irisremove+0x20/0x48 [qcomiris] platformremove+0x20/0x30 deviceremove+0x4c/0x80 <snip> ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ videoccmvs0clk already unprepared WARNING: drivers/clk/clk.c:1065 at clkcoreunprepare+0xf0/0x110, CPU#2: sh/542 <snip> pc : clkcoreunprepare+0xf0/0x110 lr : clkcoreunprepare+0xf0/0x110 <snip> Call trace: clkcoreunprepare+0xf0/0x110 (P) clkunprepare+0x2c/0x44 irisdisableunprepareclock+0x28/0x48 [qcomiris] irisvpupoweroffhw+0x48/0x58 [qcomiris] irisvpu33poweroffhardware+0x44/0x230 [qcomiris] irisvpupoweroff+0x34/0x84 [qcomiris] iriscoredeinit+0x44/0xc8 [qcomiris] irisremove+0x20/0x48 [qcomiris] platformremove+0x20/0x30 deviceremove+0x4c/0x80 <snip> ---[ end trace 0000000000000000 ]--- genpd genpd:0:aa00000.video-codec: Runtime PM usage count underflow! ------------[ cut here ]------------ gccvideoaxi0clk already disabled WARNING: drivers/clk/clk.c:1206 at clkcoredisable+0xa4/0xac, CPU#4: sh/542 <snip> pc : clkcoredisable+0xa4/0xac lr : clkcoredisable+0xa4/0xac <snip> Call trace: clkcoredisable+0xa4/0xac (P) clkdisable+0x30/0x4c irisdisableunprepareclock+0x20/0x48 [qcomiris] irisvpu33poweroffcontroller+0x17c/0x428 [qcomiris] irisvpupoweroff+0x48/0x84 [qcomiris] iriscoredeinit+0x44/0xc8 [qcomiris] irisremove+0x20/0x48 [qcomiris] platformremove+0x20/0x30 deviceremove+0x4c/0x80 <snip> ------------[ cut here ]------------ gccvideoaxi0clk already unprepared WARNING: drivers/clk/clk.c:1065 at clkcoreunprepare+0xf0/0x110, CPU#4: sh/542 <snip> pc : clkcoreunprepare+0xf0/0x110 lr : clkcoreunprepare+0xf0/0x110 <snip> Call trace: clkcoreunprepare+0xf0/0x110 (P) clkunprepare+0x2c/0x44 irisdisableunprepareclock+0x28/0x48 [qcomiris] irisvpu33poweroffcontroller+0x17c/0x428 [qcomiris] irisvpupoweroff+0x48/0x84 [qcomiris] iriscoredeinit+0x44/0xc8 [qcomiris] irisremove+0x20/0x48 [qcomiris] platformremove+0x20/0x30 deviceremove+0x4c/0x80 <snip> ---[ end trace 0000000000000000 ]---

Skip deinit if initialization never succeeded.

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
d7378f84e94e14998b3469dcc0d8ce609d049ccc
Fixed
7a0a77b936ff28f59c271172e81cefebf7b2b7a6
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d7378f84e94e14998b3469dcc0d8ce609d049ccc
Fixed
fde38008fc4f43db8c17869491870df24b501543

Affected versions

v6.*

v6.14
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

Database specific

vanir_signatures

[
    {
        "id": "CVE-2025-40208-8f4de19c",
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7a0a77b936ff28f59c271172e81cefebf7b2b7a6",
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "314815910866149759409593258809464613390",
                "21934100099696252295828850585973333643",
                "49586617954955634956895542979408332830",
                "265828480797695042658677258524637966954",
                "70314176923910877561758454390508538574",
                "186714700061890688424393542432241673511",
                "89678541855195575600772597220622742631"
            ]
        },
        "deprecated": false,
        "target": {
            "file": "drivers/media/platform/qcom/iris/iris_core.c"
        }
    },
    {
        "id": "CVE-2025-40208-b77d5253",
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7a0a77b936ff28f59c271172e81cefebf7b2b7a6",
        "signature_type": "Function",
        "digest": {
            "function_hash": "82224234909117811224333584047244319686",
            "length": 253.0
        },
        "deprecated": false,
        "target": {
            "function": "iris_core_deinit",
            "file": "drivers/media/platform/qcom/iris/iris_core.c"
        }
    },
    {
        "id": "CVE-2025-40208-fab5cf24",
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fde38008fc4f43db8c17869491870df24b501543",
        "signature_type": "Function",
        "digest": {
            "function_hash": "82224234909117811224333584047244319686",
            "length": 253.0
        },
        "deprecated": false,
        "target": {
            "function": "iris_core_deinit",
            "file": "drivers/media/platform/qcom/iris/iris_core.c"
        }
    },
    {
        "id": "CVE-2025-40208-fd497853",
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fde38008fc4f43db8c17869491870df24b501543",
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "314815910866149759409593258809464613390",
                "21934100099696252295828850585973333643",
                "49586617954955634956895542979408332830",
                "265828480797695042658677258524637966954",
                "70314176923910877561758454390508538574",
                "186714700061890688424393542432241673511",
                "89678541855195575600772597220622742631"
            ]
        },
        "deprecated": false,
        "target": {
            "file": "drivers/media/platform/qcom/iris/iris_core.c"
        }
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.15.0
Fixed
6.17.4