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.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50097.json"
}[
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"280995708946847501345228772802591958140",
"231160605183170829407542496345664955972",
"68541429211043768322152392277303438153",
"166589247034757549731253779954668276085",
"261079438680913395223512064937744171261",
"188263120234433709930662269494962791934",
"39553853856962301093032053820489980013",
"136603718653994203252188354399913721651"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6be063071a457767ee229db13f019c2ec03bfe44",
"deprecated": false,
"id": "CVE-2024-50097-2a00e3aa",
"signature_type": "Line",
"target": {
"file": "drivers/net/ethernet/freescale/fec_main.c"
},
"signature_version": "v1"
},
{
"digest": {
"length": 4048.0,
"function_hash": "220823982287177924474525554361740239306"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3192e8d4a1ef9fc9bd7a59cdce51543367e5edd6",
"deprecated": false,
"id": "CVE-2024-50097-3879838f",
"signature_type": "Function",
"target": {
"function": "fec_restart",
"file": "drivers/net/ethernet/freescale/fec_main.c"
},
"signature_version": "v1"
},
{
"digest": {
"length": 4048.0,
"function_hash": "220823982287177924474525554361740239306"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6be063071a457767ee229db13f019c2ec03bfe44",
"deprecated": false,
"id": "CVE-2024-50097-99d04f3c",
"signature_type": "Function",
"target": {
"function": "fec_restart",
"file": "drivers/net/ethernet/freescale/fec_main.c"
},
"signature_version": "v1"
},
{
"digest": {
"length": 1274.0,
"function_hash": "174102759602548145892718248467199484655"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3192e8d4a1ef9fc9bd7a59cdce51543367e5edd6",
"deprecated": false,
"id": "CVE-2024-50097-adcfcad9",
"signature_type": "Function",
"target": {
"function": "fec_stop",
"file": "drivers/net/ethernet/freescale/fec_main.c"
},
"signature_version": "v1"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"280995708946847501345228772802591958140",
"231160605183170829407542496345664955972",
"68541429211043768322152392277303438153",
"166589247034757549731253779954668276085",
"261079438680913395223512064937744171261",
"188263120234433709930662269494962791934",
"39553853856962301093032053820489980013",
"136603718653994203252188354399913721651"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3192e8d4a1ef9fc9bd7a59cdce51543367e5edd6",
"deprecated": false,
"id": "CVE-2024-50097-b8e1cfcb",
"signature_type": "Line",
"target": {
"file": "drivers/net/ethernet/freescale/fec_main.c"
},
"signature_version": "v1"
},
{
"digest": {
"length": 1274.0,
"function_hash": "174102759602548145892718248467199484655"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6be063071a457767ee229db13f019c2ec03bfe44",
"deprecated": false,
"id": "CVE-2024-50097-f7fff28a",
"signature_type": "Function",
"target": {
"function": "fec_stop",
"file": "drivers/net/ethernet/freescale/fec_main.c"
},
"signature_version": "v1"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50097.json"