In the Linux kernel, the following vulnerability has been resolved:
net: ethernet: stmmac: fix altrtsepcs function when using a fixed-link
When using a fixed-link, the altrtsepcs driver crashes due to null-pointer dereference as no phydevice is provided to tsepcsfixmacspeed function. Fix this by adding a check for phydev before calling the tsepcsfixmacspeed() function.
Also clean up the tsepcsfixmacspeed function a bit. There is no need to check for splitterbase and sgmiiadapter_base because the driver will fail if these 2 variables are not derived from the device tree.
[
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"322453248332873584686958334282461897053",
"203415051687763964197776290024744207110",
"130227376626323168941867347658163072317",
"1310281781236878949371779178051395410",
"181658327150792958044510756941806246324",
"138942465587277581869705263311632719452",
"311791563902890056612101508176912247176",
"18992582853947709356610610128087345528",
"239041918791251275046642629802315797386",
"39895564925924093442400754398177669535"
]
},
"target": {
"file": "drivers/net/ethernet/stmicro/stmmac/altr_tse_pcs.c"
},
"signature_version": "v1",
"id": "CVE-2022-49061-00cbcdf7",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7e59fdf9547c4f948d1d917ec7ffa5fb5ac53bdb"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "24858013420681255914537334562399333382",
"length": 1655.0
},
"target": {
"file": "drivers/net/ethernet/stmicro/stmmac/altr_tse_pcs.c",
"function": "tse_pcs_fix_mac_speed"
},
"signature_version": "v1",
"id": "CVE-2022-49061-01fa4199",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@62a48383ebe2e159fd68425dd3e16d4c6bd6599a"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"59508030138464010363937939624730181409",
"30427223481091955581406426959761573621",
"48085787270716106038178231025736091352",
"123346837994630551799422645363136222516",
"137956803911153362495861023433145091332",
"326678200001035190465769583529836211115",
"311520570784046678202290996992320254263",
"42134349500841683165983850541283958403",
"161779163034804561908942364412151610007",
"309678653578453260410226235907325389144",
"188149543922294813058949876985560442368",
"117733753607278479881324567748079996823",
"147341455539574660686282984566432156263",
"47905803440852023596077640884064268780",
"37027986959265463895568825886116475660",
"163065412482942189469387266487242726562",
"95099488111843685279103133847194536734",
"9183835800062733401217948095806055586",
"166920414937658185458566559366082413"
]
},
"target": {
"file": "drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c"
},
"signature_version": "v1",
"id": "CVE-2022-49061-049aeb57",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7e59fdf9547c4f948d1d917ec7ffa5fb5ac53bdb"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"322453248332873584686958334282461897053",
"203415051687763964197776290024744207110",
"130227376626323168941867347658163072317",
"1310281781236878949371779178051395410",
"181658327150792958044510756941806246324",
"138942465587277581869705263311632719452",
"311791563902890056612101508176912247176",
"18992582853947709356610610128087345528",
"239041918791251275046642629802315797386",
"39895564925924093442400754398177669535"
]
},
"target": {
"file": "drivers/net/ethernet/stmicro/stmmac/altr_tse_pcs.c"
},
"signature_version": "v1",
"id": "CVE-2022-49061-06b5ef21",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@08d5e3e954537931c8da7428034808d202e98299"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "24858013420681255914537334562399333382",
"length": 1655.0
},
"target": {
"file": "drivers/net/ethernet/stmicro/stmmac/altr_tse_pcs.c",
"function": "tse_pcs_fix_mac_speed"
},
"signature_version": "v1",
"id": "CVE-2022-49061-0a356350",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a6aaa00324240967272b451bfa772547bd576ee6"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"59508030138464010363937939624730181409",
"30427223481091955581406426959761573621",
"48085787270716106038178231025736091352",
"123346837994630551799422645363136222516",
"137956803911153362495861023433145091332",
"326678200001035190465769583529836211115",
"311520570784046678202290996992320254263",
"42134349500841683165983850541283958403",
"161779163034804561908942364412151610007",
"309678653578453260410226235907325389144",
"188149543922294813058949876985560442368",
"117733753607278479881324567748079996823",
"147341455539574660686282984566432156263",
"47905803440852023596077640884064268780",
"37027986959265463895568825886116475660",
"163065412482942189469387266487242726562",
"95099488111843685279103133847194536734",
"9183835800062733401217948095806055586",
"166920414937658185458566559366082413"
]
},
"target": {
"file": "drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c"
},
"signature_version": "v1",
"id": "CVE-2022-49061-1bbfc449",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@08d5e3e954537931c8da7428034808d202e98299"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"322453248332873584686958334282461897053",
"203415051687763964197776290024744207110",
"130227376626323168941867347658163072317",
"1310281781236878949371779178051395410",
"181658327150792958044510756941806246324",
"138942465587277581869705263311632719452",
"311791563902890056612101508176912247176",
"18992582853947709356610610128087345528",
"239041918791251275046642629802315797386",
"39895564925924093442400754398177669535"
]
},
"target": {
"file": "drivers/net/ethernet/stmicro/stmmac/altr_tse_pcs.c"
},
"signature_version": "v1",
"id": "CVE-2022-49061-206f3f86",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@62a48383ebe2e159fd68425dd3e16d4c6bd6599a"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"322453248332873584686958334282461897053",
"203415051687763964197776290024744207110",
"130227376626323168941867347658163072317",
"1310281781236878949371779178051395410",
"181658327150792958044510756941806246324",
"138942465587277581869705263311632719452",
"311791563902890056612101508176912247176",
"18992582853947709356610610128087345528",
"239041918791251275046642629802315797386",
"39895564925924093442400754398177669535"
]
},
"target": {
"file": "drivers/net/ethernet/stmicro/stmmac/altr_tse_pcs.c"
},
"signature_version": "v1",
"id": "CVE-2022-49061-26597dcf",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6c020f05253df04c3480b586fe188a3582740049"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"59508030138464010363937939624730181409",
"30427223481091955581406426959761573621",
"48085787270716106038178231025736091352",
"123346837994630551799422645363136222516",
"137956803911153362495861023433145091332",
"326678200001035190465769583529836211115",
"311520570784046678202290996992320254263",
"42134349500841683165983850541283958403",
"161779163034804561908942364412151610007",
"309678653578453260410226235907325389144",
"188149543922294813058949876985560442368",
"117733753607278479881324567748079996823",
"147341455539574660686282984566432156263",
"47905803440852023596077640884064268780",
"37027986959265463895568825886116475660",
"163065412482942189469387266487242726562",
"95099488111843685279103133847194536734",
"9183835800062733401217948095806055586",
"166920414937658185458566559366082413"
]
},
"target": {
"file": "drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c"
},
"signature_version": "v1",
"id": "CVE-2022-49061-3c499118",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@62a48383ebe2e159fd68425dd3e16d4c6bd6599a"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "24858013420681255914537334562399333382",
"length": 1655.0
},
"target": {
"file": "drivers/net/ethernet/stmicro/stmmac/altr_tse_pcs.c",
"function": "tse_pcs_fix_mac_speed"
},
"signature_version": "v1",
"id": "CVE-2022-49061-4473a9aa",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7e59fdf9547c4f948d1d917ec7ffa5fb5ac53bdb"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"322453248332873584686958334282461897053",
"203415051687763964197776290024744207110",
"130227376626323168941867347658163072317",
"1310281781236878949371779178051395410",
"181658327150792958044510756941806246324",
"138942465587277581869705263311632719452",
"311791563902890056612101508176912247176",
"18992582853947709356610610128087345528",
"239041918791251275046642629802315797386",
"39895564925924093442400754398177669535"
]
},
"target": {
"file": "drivers/net/ethernet/stmicro/stmmac/altr_tse_pcs.c"
},
"signature_version": "v1",
"id": "CVE-2022-49061-57e22538",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a6aaa00324240967272b451bfa772547bd576ee6"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "74022493235431383162509464442308353869",
"length": 815.0
},
"target": {
"file": "drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c",
"function": "socfpga_dwmac_fix_mac_speed"
},
"signature_version": "v1",
"id": "CVE-2022-49061-69ad0852",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6c020f05253df04c3480b586fe188a3582740049"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "74022493235431383162509464442308353869",
"length": 815.0
},
"target": {
"file": "drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c",
"function": "socfpga_dwmac_fix_mac_speed"
},
"signature_version": "v1",
"id": "CVE-2022-49061-83b74da9",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7e59fdf9547c4f948d1d917ec7ffa5fb5ac53bdb"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "74022493235431383162509464442308353869",
"length": 815.0
},
"target": {
"file": "drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c",
"function": "socfpga_dwmac_fix_mac_speed"
},
"signature_version": "v1",
"id": "CVE-2022-49061-89e1566b",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a6aaa00324240967272b451bfa772547bd576ee6"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "24858013420681255914537334562399333382",
"length": 1655.0
},
"target": {
"file": "drivers/net/ethernet/stmicro/stmmac/altr_tse_pcs.c",
"function": "tse_pcs_fix_mac_speed"
},
"signature_version": "v1",
"id": "CVE-2022-49061-8ab58044",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6c020f05253df04c3480b586fe188a3582740049"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "74022493235431383162509464442308353869",
"length": 815.0
},
"target": {
"file": "drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c",
"function": "socfpga_dwmac_fix_mac_speed"
},
"signature_version": "v1",
"id": "CVE-2022-49061-8fdd764e",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@62a48383ebe2e159fd68425dd3e16d4c6bd6599a"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"59508030138464010363937939624730181409",
"30427223481091955581406426959761573621",
"48085787270716106038178231025736091352",
"123346837994630551799422645363136222516",
"137956803911153362495861023433145091332",
"326678200001035190465769583529836211115",
"311520570784046678202290996992320254263",
"42134349500841683165983850541283958403",
"161779163034804561908942364412151610007",
"309678653578453260410226235907325389144",
"188149543922294813058949876985560442368",
"117733753607278479881324567748079996823",
"147341455539574660686282984566432156263",
"47905803440852023596077640884064268780",
"37027986959265463895568825886116475660",
"163065412482942189469387266487242726562",
"95099488111843685279103133847194536734",
"9183835800062733401217948095806055586",
"166920414937658185458566559366082413"
]
},
"target": {
"file": "drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c"
},
"signature_version": "v1",
"id": "CVE-2022-49061-968507dd",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a6aaa00324240967272b451bfa772547bd576ee6"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"59508030138464010363937939624730181409",
"30427223481091955581406426959761573621",
"48085787270716106038178231025736091352",
"123346837994630551799422645363136222516",
"137956803911153362495861023433145091332",
"326678200001035190465769583529836211115",
"311520570784046678202290996992320254263",
"42134349500841683165983850541283958403",
"161779163034804561908942364412151610007",
"309678653578453260410226235907325389144",
"188149543922294813058949876985560442368",
"117733753607278479881324567748079996823",
"147341455539574660686282984566432156263",
"47905803440852023596077640884064268780",
"37027986959265463895568825886116475660",
"163065412482942189469387266487242726562",
"95099488111843685279103133847194536734",
"9183835800062733401217948095806055586",
"166920414937658185458566559366082413"
]
},
"target": {
"file": "drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c"
},
"signature_version": "v1",
"id": "CVE-2022-49061-adb96f14",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6c020f05253df04c3480b586fe188a3582740049"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "74022493235431383162509464442308353869",
"length": 815.0
},
"target": {
"file": "drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c",
"function": "socfpga_dwmac_fix_mac_speed"
},
"signature_version": "v1",
"id": "CVE-2022-49061-dc3d569e",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@08d5e3e954537931c8da7428034808d202e98299"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "24858013420681255914537334562399333382",
"length": 1655.0
},
"target": {
"file": "drivers/net/ethernet/stmicro/stmmac/altr_tse_pcs.c",
"function": "tse_pcs_fix_mac_speed"
},
"signature_version": "v1",
"id": "CVE-2022-49061-ffa5854b",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@08d5e3e954537931c8da7428034808d202e98299"
}
]