CVE-2024-27063

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-27063
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-27063.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-27063
Downstream
Published
2024-05-01T13:00:24Z
Modified
2025-10-15T10:14:30.298495Z
Summary
leds: trigger: netdev: Fix kernel panic on interface rename trig notify
Details

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

leds: trigger: netdev: Fix kernel panic on interface rename trig notify

Commit d5e01266e7f5 ("leds: trigger: netdev: add additional specific link speed mode") in the various changes, reworked the way to set the LINKUP mode in commit cee4bd16c319 ("leds: trigger: netdev: Recheck NETDEVLEDMODE_LINKUP on dev rename") and moved it to a generic function.

This changed the logic where, in the previous implementation the dev from the trigger event was used to check if the carrier was ok, but in the new implementation with the generic function, the dev in trigger_data is used instead.

This is problematic and cause a possible kernel panic due to the fact that the dev in the triggerdata still reference the old one as the new one (passed from the trigger event) still has to be hold and saved in the triggerdata struct (done in the NETDEV_REGISTER case).

On calling of getdevicestate(), an invalid net_dev is used and this cause a kernel panic.

To handle this correctly, move the call to getdevicestate() after the new netdev is correctly set in triggerdata (in the NETDEV_REGISTER case) and correctly parse the new dev.

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
d5e01266e7f5fa12400d4c8aa4e86fe89dcc61e9
Fixed
10f2af1af8ab8a7064f193446abd5579d3def7e3
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d5e01266e7f5fa12400d4c8aa4e86fe89dcc61e9
Fixed
acd025c7a7d151261533016a6ca2d38f2de04e87
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d5e01266e7f5fa12400d4c8aa4e86fe89dcc61e9
Fixed
3f360227cb46edb2cd2494128e1e06ed5768a62e
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d5e01266e7f5fa12400d4c8aa4e86fe89dcc61e9
Fixed
415798bc07dd1c1ae3a656aa026580816e0b9fe8

Affected versions

v6.*

v6.4
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.11
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.3
v6.6.4
v6.6.5
v6.6.6
v6.6.7
v6.6.8
v6.6.9
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.7.1
v6.7.10
v6.7.11
v6.7.2
v6.7.3
v6.7.4
v6.7.5
v6.7.6
v6.7.7
v6.7.8
v6.7.9
v6.8
v6.8-rc1
v6.8-rc2
v6.8-rc3
v6.8-rc4
v6.8-rc5
v6.8-rc6
v6.8-rc7
v6.8.1
v6.8.2

Database specific

{
    "vanir_signatures": [
        {
            "signature_version": "v1",
            "signature_type": "Function",
            "target": {
                "file": "drivers/leds/trigger/ledtrig-netdev.c",
                "function": "netdev_trig_notify"
            },
            "id": "CVE-2024-27063-03000a7d",
            "digest": {
                "length": 1487.0,
                "function_hash": "52295858347395453037898281637568029996"
            },
            "deprecated": false,
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@415798bc07dd1c1ae3a656aa026580816e0b9fe8"
        },
        {
            "signature_version": "v1",
            "signature_type": "Function",
            "target": {
                "file": "drivers/leds/trigger/ledtrig-netdev.c",
                "function": "netdev_trig_notify"
            },
            "id": "CVE-2024-27063-42da7aa5",
            "digest": {
                "length": 1346.0,
                "function_hash": "91374263311866098530895413607576411970"
            },
            "deprecated": false,
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3f360227cb46edb2cd2494128e1e06ed5768a62e"
        },
        {
            "signature_version": "v1",
            "signature_type": "Line",
            "target": {
                "file": "drivers/leds/trigger/ledtrig-netdev.c"
            },
            "id": "CVE-2024-27063-6c3cd01a",
            "digest": {
                "line_hashes": [
                    "226460027032980793141230205589484554821",
                    "211368625780110297965241751558202711809",
                    "132535378675498360092056808476473132264",
                    "49458896960565897310387072754829853322",
                    "23041500006462776559583045683231016862",
                    "21723709323285072084588160621716998983",
                    "128104361833639732503779354809500019689",
                    "30998353682994311273671560843400769136",
                    "223886758839928389737057439376326056579"
                ],
                "threshold": 0.9
            },
            "deprecated": false,
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@10f2af1af8ab8a7064f193446abd5579d3def7e3"
        },
        {
            "signature_version": "v1",
            "signature_type": "Function",
            "target": {
                "file": "drivers/leds/trigger/ledtrig-netdev.c",
                "function": "netdev_trig_notify"
            },
            "id": "CVE-2024-27063-71f9de57",
            "digest": {
                "length": 1346.0,
                "function_hash": "91374263311866098530895413607576411970"
            },
            "deprecated": false,
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@acd025c7a7d151261533016a6ca2d38f2de04e87"
        },
        {
            "signature_version": "v1",
            "signature_type": "Line",
            "target": {
                "file": "drivers/leds/trigger/ledtrig-netdev.c"
            },
            "id": "CVE-2024-27063-a3c5a620",
            "digest": {
                "line_hashes": [
                    "226460027032980793141230205589484554821",
                    "211368625780110297965241751558202711809",
                    "132535378675498360092056808476473132264",
                    "49458896960565897310387072754829853322",
                    "23041500006462776559583045683231016862",
                    "21723709323285072084588160621716998983",
                    "128104361833639732503779354809500019689",
                    "30998353682994311273671560843400769136",
                    "223886758839928389737057439376326056579"
                ],
                "threshold": 0.9
            },
            "deprecated": false,
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@415798bc07dd1c1ae3a656aa026580816e0b9fe8"
        },
        {
            "signature_version": "v1",
            "signature_type": "Line",
            "target": {
                "file": "drivers/leds/trigger/ledtrig-netdev.c"
            },
            "id": "CVE-2024-27063-d550e606",
            "digest": {
                "line_hashes": [
                    "226460027032980793141230205589484554821",
                    "211368625780110297965241751558202711809",
                    "132535378675498360092056808476473132264",
                    "49458896960565897310387072754829853322",
                    "23041500006462776559583045683231016862",
                    "21723709323285072084588160621716998983",
                    "128104361833639732503779354809500019689",
                    "30998353682994311273671560843400769136",
                    "223886758839928389737057439376326056579"
                ],
                "threshold": 0.9
            },
            "deprecated": false,
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3f360227cb46edb2cd2494128e1e06ed5768a62e"
        },
        {
            "signature_version": "v1",
            "signature_type": "Function",
            "target": {
                "file": "drivers/leds/trigger/ledtrig-netdev.c",
                "function": "netdev_trig_notify"
            },
            "id": "CVE-2024-27063-e4b634ff",
            "digest": {
                "length": 1346.0,
                "function_hash": "91374263311866098530895413607576411970"
            },
            "deprecated": false,
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@10f2af1af8ab8a7064f193446abd5579d3def7e3"
        },
        {
            "signature_version": "v1",
            "signature_type": "Line",
            "target": {
                "file": "drivers/leds/trigger/ledtrig-netdev.c"
            },
            "id": "CVE-2024-27063-f2ebe32a",
            "digest": {
                "line_hashes": [
                    "226460027032980793141230205589484554821",
                    "211368625780110297965241751558202711809",
                    "132535378675498360092056808476473132264",
                    "49458896960565897310387072754829853322",
                    "23041500006462776559583045683231016862",
                    "21723709323285072084588160621716998983",
                    "128104361833639732503779354809500019689",
                    "30998353682994311273671560843400769136",
                    "223886758839928389737057439376326056579"
                ],
                "threshold": 0.9
            },
            "deprecated": false,
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@acd025c7a7d151261533016a6ca2d38f2de04e87"
        }
    ]
}

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.5.0
Fixed
6.6.24
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.7.12
Type
ECOSYSTEM
Events
Introduced
6.8.0
Fixed
6.8.3