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.
[
{
"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"
}
]