In the Linux kernel, the following vulnerability has been resolved:
net: fec: don't save PTP state if PTP is unsupported
Some platforms (such as i.MX25 and i.MX27) do not support PTP, so on these platforms fecptpinit() is not called and the related members in fep are not initialized. However, fecptpsavestate() is called unconditionally, which causes the kernel to panic. Therefore, add a condition so that fecptpsavestate() is not called if PTP is not supported.
[
{
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6be063071a457767ee229db13f019c2ec03bfe44",
"signature_type": "Line",
"id": "CVE-2024-50097-2a00e3aa",
"target": {
"file": "drivers/net/ethernet/freescale/fec_main.c"
},
"digest": {
"line_hashes": [
"280995708946847501345228772802591958140",
"231160605183170829407542496345664955972",
"68541429211043768322152392277303438153",
"166589247034757549731253779954668276085",
"261079438680913395223512064937744171261",
"188263120234433709930662269494962791934",
"39553853856962301093032053820489980013",
"136603718653994203252188354399913721651"
],
"threshold": 0.9
},
"deprecated": false
},
{
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3192e8d4a1ef9fc9bd7a59cdce51543367e5edd6",
"signature_type": "Function",
"id": "CVE-2024-50097-3879838f",
"target": {
"function": "fec_restart",
"file": "drivers/net/ethernet/freescale/fec_main.c"
},
"digest": {
"length": 4048.0,
"function_hash": "220823982287177924474525554361740239306"
},
"deprecated": false
},
{
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7745e14f4c036ce94a5eb05d06e49b0d84b306f9",
"signature_type": "Line",
"id": "CVE-2024-50097-57ded35f",
"target": {
"file": "drivers/net/ethernet/freescale/fec_main.c"
},
"digest": {
"line_hashes": [
"280995708946847501345228772802591958140",
"231160605183170829407542496345664955972",
"68541429211043768322152392277303438153",
"166589247034757549731253779954668276085",
"261079438680913395223512064937744171261",
"188263120234433709930662269494962791934",
"39553853856962301093032053820489980013",
"136603718653994203252188354399913721651"
],
"threshold": 0.9
},
"deprecated": false
},
{
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7745e14f4c036ce94a5eb05d06e49b0d84b306f9",
"signature_type": "Function",
"id": "CVE-2024-50097-8f071a48",
"target": {
"function": "fec_stop",
"file": "drivers/net/ethernet/freescale/fec_main.c"
},
"digest": {
"length": 1274.0,
"function_hash": "174102759602548145892718248467199484655"
},
"deprecated": false
},
{
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6be063071a457767ee229db13f019c2ec03bfe44",
"signature_type": "Function",
"id": "CVE-2024-50097-99d04f3c",
"target": {
"function": "fec_restart",
"file": "drivers/net/ethernet/freescale/fec_main.c"
},
"digest": {
"length": 4048.0,
"function_hash": "220823982287177924474525554361740239306"
},
"deprecated": false
},
{
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7745e14f4c036ce94a5eb05d06e49b0d84b306f9",
"signature_type": "Function",
"id": "CVE-2024-50097-a605e5f9",
"target": {
"function": "fec_restart",
"file": "drivers/net/ethernet/freescale/fec_main.c"
},
"digest": {
"length": 4042.0,
"function_hash": "304922205767389787582781078922049657573"
},
"deprecated": false
},
{
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3192e8d4a1ef9fc9bd7a59cdce51543367e5edd6",
"signature_type": "Function",
"id": "CVE-2024-50097-adcfcad9",
"target": {
"function": "fec_stop",
"file": "drivers/net/ethernet/freescale/fec_main.c"
},
"digest": {
"length": 1274.0,
"function_hash": "174102759602548145892718248467199484655"
},
"deprecated": false
},
{
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3192e8d4a1ef9fc9bd7a59cdce51543367e5edd6",
"signature_type": "Line",
"id": "CVE-2024-50097-b8e1cfcb",
"target": {
"file": "drivers/net/ethernet/freescale/fec_main.c"
},
"digest": {
"line_hashes": [
"280995708946847501345228772802591958140",
"231160605183170829407542496345664955972",
"68541429211043768322152392277303438153",
"166589247034757549731253779954668276085",
"261079438680913395223512064937744171261",
"188263120234433709930662269494962791934",
"39553853856962301093032053820489980013",
"136603718653994203252188354399913721651"
],
"threshold": 0.9
},
"deprecated": false
},
{
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6be063071a457767ee229db13f019c2ec03bfe44",
"signature_type": "Function",
"id": "CVE-2024-50097-f7fff28a",
"target": {
"function": "fec_stop",
"file": "drivers/net/ethernet/freescale/fec_main.c"
},
"digest": {
"length": 1274.0,
"function_hash": "174102759602548145892718248467199484655"
},
"deprecated": false
}
]