CVE-2024-35891

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-35891
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-35891.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-35891
Downstream
Related
Published
2024-05-19T08:34:46Z
Modified
2025-10-17T03:53:00.056498Z
Summary
net: phy: micrel: Fix potential null pointer dereference
Details

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

net: phy: micrel: Fix potential null pointer dereference

In lan8814getsigrx() and lan8814getsigtx() ptpparseheader() may return NULL as ptpheader due to abnormal packet type or corrupted packet. Fix this bug by adding ptpheader check.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

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
ece19502834d84ece2e056db28257ca2aa6e4d48
Fixed
10608161696c2768f53426642f78a42bcaaa53e8
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
ece19502834d84ece2e056db28257ca2aa6e4d48
Fixed
95c1016a2d92c4c28a9d1b6d09859c00b19c0ea4
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
ece19502834d84ece2e056db28257ca2aa6e4d48
Fixed
49767b0df276f12e3e7184601e09ee7430e252dc
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
ece19502834d84ece2e056db28257ca2aa6e4d48
Fixed
96c155943a703f0655c0c4cab540f67055960e91

Affected versions

v5.*

v5.17
v5.17-rc7
v5.17-rc8
v5.18
v5.18-rc1
v5.18-rc2
v5.18-rc3
v5.18-rc4
v5.18-rc5
v5.18-rc6
v5.18-rc7
v5.19
v5.19-rc1
v5.19-rc2
v5.19-rc3
v5.19-rc4
v5.19-rc5
v5.19-rc6
v5.19-rc7
v5.19-rc8

v6.*

v6.0
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6.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.24
v6.6.25
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.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
v6.8.3
v6.8.4
v6.9-rc1

Database specific

vanir_signatures

[
    {
        "id": "CVE-2024-35891-0bc7f48f",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "target": {
            "file": "drivers/net/phy/micrel.c",
            "function": "lan8814_match_rx_ts"
        },
        "digest": {
            "function_hash": "66296115205324137398813185916927755356",
            "length": 664.0
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@10608161696c2768f53426642f78a42bcaaa53e8"
    },
    {
        "id": "CVE-2024-35891-21ab90bd",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "target": {
            "file": "drivers/net/phy/micrel.c",
            "function": "lan8814_get_sig_tx"
        },
        "digest": {
            "function_hash": "74253186627510767763840181782547814064",
            "length": 203.0
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@49767b0df276f12e3e7184601e09ee7430e252dc"
    },
    {
        "id": "CVE-2024-35891-29761857",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "target": {
            "file": "drivers/net/phy/micrel.c",
            "function": "lan8814_dequeue_tx_skb"
        },
        "digest": {
            "function_hash": "282089326314904610795376779897128417712",
            "length": 665.0
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@10608161696c2768f53426642f78a42bcaaa53e8"
    },
    {
        "id": "CVE-2024-35891-2ef00910",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "target": {
            "file": "drivers/net/phy/micrel.c",
            "function": "lan8814_get_sig_tx"
        },
        "digest": {
            "function_hash": "74253186627510767763840181782547814064",
            "length": 203.0
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@95c1016a2d92c4c28a9d1b6d09859c00b19c0ea4"
    },
    {
        "id": "CVE-2024-35891-315f3d54",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "target": {
            "file": "drivers/net/phy/micrel.c",
            "function": "lan8814_match_skb"
        },
        "digest": {
            "function_hash": "340139745611508851670267139512532799829",
            "length": 659.0
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@95c1016a2d92c4c28a9d1b6d09859c00b19c0ea4"
    },
    {
        "id": "CVE-2024-35891-3555e272",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "target": {
            "file": "drivers/net/phy/micrel.c",
            "function": "lan8814_match_tx_skb"
        },
        "digest": {
            "function_hash": "121618843072054228885492072745946283334",
            "length": 613.0
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@96c155943a703f0655c0c4cab540f67055960e91"
    },
    {
        "id": "CVE-2024-35891-44e96036",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "target": {
            "file": "drivers/net/phy/micrel.c",
            "function": "lan8814_get_sig_rx"
        },
        "digest": {
            "function_hash": "86259368055541042332097945000626544340",
            "length": 267.0
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@49767b0df276f12e3e7184601e09ee7430e252dc"
    },
    {
        "id": "CVE-2024-35891-61bdac67",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "target": {
            "file": "drivers/net/phy/micrel.c",
            "function": "lan8814_match_tx_skb"
        },
        "digest": {
            "function_hash": "121618843072054228885492072745946283334",
            "length": 613.0
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@95c1016a2d92c4c28a9d1b6d09859c00b19c0ea4"
    },
    {
        "id": "CVE-2024-35891-6bb43524",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "target": {
            "file": "drivers/net/phy/micrel.c",
            "function": "lan8814_get_sig_tx"
        },
        "digest": {
            "function_hash": "74253186627510767763840181782547814064",
            "length": 203.0
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@10608161696c2768f53426642f78a42bcaaa53e8"
    },
    {
        "id": "CVE-2024-35891-8b262acb",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "target": {
            "file": "drivers/net/phy/micrel.c",
            "function": "lan8814_match_skb"
        },
        "digest": {
            "function_hash": "340139745611508851670267139512532799829",
            "length": 659.0
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@10608161696c2768f53426642f78a42bcaaa53e8"
    },
    {
        "id": "CVE-2024-35891-9270a72d",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "target": {
            "file": "drivers/net/phy/micrel.c"
        },
        "digest": {
            "line_hashes": [
                "20902540461463990397365250322173552135",
                "51745713145782170644904412842401170294",
                "158663666726482976628483055814875497012",
                "130918256829329948067253947460336205798",
                "291265599856736870480623930104313209877",
                "166812039094680634985992389940457735597",
                "243371725296763573084383799132256677579",
                "45506500498364992842787245807572682863",
                "83731783876803335603450818736176938736",
                "141957633184864228920542236041540050757",
                "310591473824086453310559923505660699331",
                "92479387046815684952177037456339383988",
                "55854035495876760058564433970668941199",
                "194566644641598304801643382309488661403",
                "115024073333081701341519283701012094948",
                "96806015373394495519559731124786410432",
                "159383525676246414116373769818000608453",
                "227154085555129876976752092049168638736",
                "274617801246909159974682509920818611966",
                "208745817231388786272279603516429185915",
                "314670689457504514709221745393376964221",
                "5469762890446173105463325993304315844",
                "128346839402473553180328009025579467345",
                "61878356970476467324088611914549832357",
                "332946150696626301434650541372089304584",
                "129887390319151097170633215383582792493",
                "313432941129843877394497770982261100198",
                "125914447107475822372709360397567309510"
            ],
            "threshold": 0.9
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@49767b0df276f12e3e7184601e09ee7430e252dc"
    },
    {
        "id": "CVE-2024-35891-989f13df",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "target": {
            "file": "drivers/net/phy/micrel.c",
            "function": "lan8814_match_rx_skb"
        },
        "digest": {
            "function_hash": "66296115205324137398813185916927755356",
            "length": 664.0
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@95c1016a2d92c4c28a9d1b6d09859c00b19c0ea4"
    },
    {
        "id": "CVE-2024-35891-992c43d5",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "target": {
            "file": "drivers/net/phy/micrel.c"
        },
        "digest": {
            "line_hashes": [
                "20902540461463990397365250322173552135",
                "51745713145782170644904412842401170294",
                "158663666726482976628483055814875497012",
                "130918256829329948067253947460336205798",
                "291265599856736870480623930104313209877",
                "166812039094680634985992389940457735597",
                "311693907673515687824065847083373960997",
                "217022336721271289900446587475097037806",
                "83731783876803335603450818736176938736",
                "141957633184864228920542236041540050757",
                "310591473824086453310559923505660699331",
                "92479387046815684952177037456339383988",
                "55854035495876760058564433970668941199",
                "194566644641598304801643382309488661403",
                "115024073333081701341519283701012094948",
                "96806015373394495519559731124786410432",
                "159383525676246414116373769818000608453",
                "227154085555129876976752092049168638736",
                "172272261935759238661619460115243431695",
                "146226869221794773036394636495166198837",
                "44897957026594287491954124825430956954",
                "5469762890446173105463325993304315844",
                "128346839402473553180328009025579467345",
                "61878356970476467324088611914549832357",
                "332946150696626301434650541372089304584",
                "129887390319151097170633215383582792493",
                "313432941129843877394497770982261100198",
                "125914447107475822372709360397567309510"
            ],
            "threshold": 0.9
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@10608161696c2768f53426642f78a42bcaaa53e8"
    },
    {
        "id": "CVE-2024-35891-a1b87c96",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "target": {
            "file": "drivers/net/phy/micrel.c"
        },
        "digest": {
            "line_hashes": [
                "20902540461463990397365250322173552135",
                "51745713145782170644904412842401170294",
                "158663666726482976628483055814875497012",
                "130918256829329948067253947460336205798",
                "291265599856736870480623930104313209877",
                "166812039094680634985992389940457735597",
                "243371725296763573084383799132256677579",
                "45506500498364992842787245807572682863",
                "83731783876803335603450818736176938736",
                "141957633184864228920542236041540050757",
                "310591473824086453310559923505660699331",
                "92479387046815684952177037456339383988",
                "55854035495876760058564433970668941199",
                "194566644641598304801643382309488661403",
                "115024073333081701341519283701012094948",
                "96806015373394495519559731124786410432",
                "159383525676246414116373769818000608453",
                "227154085555129876976752092049168638736",
                "274617801246909159974682509920818611966",
                "208745817231388786272279603516429185915",
                "314670689457504514709221745393376964221",
                "5469762890446173105463325993304315844",
                "128346839402473553180328009025579467345",
                "61878356970476467324088611914549832357",
                "332946150696626301434650541372089304584",
                "129887390319151097170633215383582792493",
                "313432941129843877394497770982261100198",
                "125914447107475822372709360397567309510"
            ],
            "threshold": 0.9
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@96c155943a703f0655c0c4cab540f67055960e91"
    },
    {
        "id": "CVE-2024-35891-a3611e01",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "target": {
            "file": "drivers/net/phy/micrel.c",
            "function": "lan8814_get_sig_rx"
        },
        "digest": {
            "function_hash": "86259368055541042332097945000626544340",
            "length": 267.0
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@10608161696c2768f53426642f78a42bcaaa53e8"
    },
    {
        "id": "CVE-2024-35891-a5c377c0",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "target": {
            "file": "drivers/net/phy/micrel.c",
            "function": "lan8814_get_sig_rx"
        },
        "digest": {
            "function_hash": "86259368055541042332097945000626544340",
            "length": 267.0
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@95c1016a2d92c4c28a9d1b6d09859c00b19c0ea4"
    },
    {
        "id": "CVE-2024-35891-b250291e",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "target": {
            "file": "drivers/net/phy/micrel.c"
        },
        "digest": {
            "line_hashes": [
                "20902540461463990397365250322173552135",
                "51745713145782170644904412842401170294",
                "158663666726482976628483055814875497012",
                "130918256829329948067253947460336205798",
                "291265599856736870480623930104313209877",
                "166812039094680634985992389940457735597",
                "243371725296763573084383799132256677579",
                "45506500498364992842787245807572682863",
                "83731783876803335603450818736176938736",
                "141957633184864228920542236041540050757",
                "310591473824086453310559923505660699331",
                "92479387046815684952177037456339383988",
                "55854035495876760058564433970668941199",
                "194566644641598304801643382309488661403",
                "115024073333081701341519283701012094948",
                "96806015373394495519559731124786410432",
                "159383525676246414116373769818000608453",
                "227154085555129876976752092049168638736",
                "274617801246909159974682509920818611966",
                "208745817231388786272279603516429185915",
                "314670689457504514709221745393376964221",
                "5469762890446173105463325993304315844",
                "128346839402473553180328009025579467345",
                "61878356970476467324088611914549832357",
                "332946150696626301434650541372089304584",
                "129887390319151097170633215383582792493",
                "313432941129843877394497770982261100198",
                "125914447107475822372709360397567309510"
            ],
            "threshold": 0.9
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@95c1016a2d92c4c28a9d1b6d09859c00b19c0ea4"
    },
    {
        "id": "CVE-2024-35891-b60c7a34",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "target": {
            "file": "drivers/net/phy/micrel.c",
            "function": "lan8814_get_sig_tx"
        },
        "digest": {
            "function_hash": "74253186627510767763840181782547814064",
            "length": 203.0
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@96c155943a703f0655c0c4cab540f67055960e91"
    },
    {
        "id": "CVE-2024-35891-d25ee59e",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "target": {
            "file": "drivers/net/phy/micrel.c",
            "function": "lan8814_match_rx_skb"
        },
        "digest": {
            "function_hash": "66296115205324137398813185916927755356",
            "length": 664.0
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@49767b0df276f12e3e7184601e09ee7430e252dc"
    },
    {
        "id": "CVE-2024-35891-d330128c",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "target": {
            "file": "drivers/net/phy/micrel.c",
            "function": "lan8814_match_skb"
        },
        "digest": {
            "function_hash": "340139745611508851670267139512532799829",
            "length": 659.0
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@96c155943a703f0655c0c4cab540f67055960e91"
    },
    {
        "id": "CVE-2024-35891-e3b7e6f6",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "target": {
            "file": "drivers/net/phy/micrel.c",
            "function": "lan8814_match_rx_skb"
        },
        "digest": {
            "function_hash": "66296115205324137398813185916927755356",
            "length": 664.0
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@96c155943a703f0655c0c4cab540f67055960e91"
    },
    {
        "id": "CVE-2024-35891-ea5ebeb8",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "target": {
            "file": "drivers/net/phy/micrel.c",
            "function": "lan8814_match_skb"
        },
        "digest": {
            "function_hash": "340139745611508851670267139512532799829",
            "length": 659.0
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@49767b0df276f12e3e7184601e09ee7430e252dc"
    },
    {
        "id": "CVE-2024-35891-ee1b09b0",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "target": {
            "file": "drivers/net/phy/micrel.c",
            "function": "lan8814_match_tx_skb"
        },
        "digest": {
            "function_hash": "121618843072054228885492072745946283334",
            "length": 613.0
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@49767b0df276f12e3e7184601e09ee7430e252dc"
    },
    {
        "id": "CVE-2024-35891-f0bf2d4b",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "target": {
            "file": "drivers/net/phy/micrel.c",
            "function": "lan8814_get_sig_rx"
        },
        "digest": {
            "function_hash": "86259368055541042332097945000626544340",
            "length": 267.0
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@96c155943a703f0655c0c4cab540f67055960e91"
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.18.0
Fixed
6.1.85
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.26
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.8.5