{"id":"CVE-2025-40255","aliases":["CVE-2025-40255"],"related":[],"kind":"vulnerability","state":"published","title":"net: core: prevent NULL deref in generic_hwtstamp_ioctl_lower()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: core: prevent NULL deref in generic_hwtstamp_ioctl_lower()\n\nThe ethtool tsconfig Netlink path can trigger a null pointer\ndereference. A call chain such as:\n\n  tsconfig_prepare_data() ->\n  dev_get_hwtstamp_phylib() ->\n  vlan_hwtstamp_get() ->\n  generic_hwtstamp_get_lower() ->\n  generic_hwtstamp_ioctl_lower()\n\nresults in generic_hwtstamp_ioctl_lower() being called with\nkernel_cfg->ifr as NULL.\n\nThe generic_hwtstamp_ioctl_lower() function does not expect\na NULL ifr and dereferences it, leading to a system crash.\n\nFix this by adding a NULL check for kernel_cfg->ifr in\ngeneric_hwtstamp_ioctl_lower(). If ifr is NULL, return -EINVAL.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: core: prevent NULL deref in generic_hwtstamp_ioctl_lower()\n\nThe ethtool tsconfig Netlink path can trigger a null pointer\ndereference. A call chain such as:\n\n  tsconfig_prepare_data() ->\n  dev_get_hwtstamp_phylib() ->\n  vlan_hwtstamp_get() ->\n  generic_hwtstamp_get_lower() ->\n  generic_hwtstamp_ioctl_lower()\n\nresults in generic_hwtstamp_ioctl_lower() being called with\nkernel_cfg->ifr as NULL.\n\nThe generic_hwtstamp_ioctl_lower() function does not expect\na NULL ifr and dereferences it, leading to a system crash.\n\nFix this by adding a NULL check for kernel_cfg->ifr in\ngeneric_hwtstamp_ioctl_lower(). If ifr is NULL, return -EINVAL.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnet: core: prevenir desreferencia NULL en generic_hwtstamp_ioctl_lower()\n\nLa ruta Netlink ethtool tsconfig puede desencadenar una desreferencia de puntero nulo. Una cadena de llamadas como:\n\n  tsconfig_prepare_data()  -> \n  dev_get_hwtstamp_phylib()  -> \n  vlan_hwtstamp_get()  -> \n  generic_hwtstamp_get_lower()  -> \n  generic_hwtstamp_ioctl_lower()\n\nresulta en generic_hwtstamp_ioctl_lower() siendo llamada con kernel_cfg -> ifr como NULL.\n\nLa función generic_hwtstamp_ioctl_lower() no espera un ifr NULL y lo desreferencia, llevando a una caída del sistema.\n\nSolucione esto añadiendo una comprobación de NULL para kernel_cfg -> ifr en generic_hwtstamp_ioctl_lower(). Si ifr es NULL, devuelva -EINVAL.","source":"nvd"}],"published":"2025-12-04T16:08:17.023Z","modified":"2026-10-19T19:10:00.130Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"6e9e2eed4f39d52edf5fd006409d211facf49f6b","fixed":"8817f816ae41908e9625c0770c4af0dcdcc01238","status":"affected"},{"type":"git","introduced":"6e9e2eed4f39d52edf5fd006409d211facf49f6b","fixed":"f796a8dec9beafcc0f6f0d3478ed685a15c5e062","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.14","status":"unaffected"},{"type":"semver","introduced":"6.17.10","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/8817f816ae41908e9625c0770c4af0dcdcc01238","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f796a8dec9beafcc0f6f0d3478ed685a15c5e062","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40255","url":"https://www.cve.org/CVERecord?id=CVE-2025-40255","licence":"CVE Terms of Use","modified":"2026-05-11T21:45:47.848Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40255","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40255","licence":"Public domain","modified":"2026-10-19T19:10:00.130Z"}],"updatedAt":"2026-11-25T22:59:08.278Z","epss":{"score":0.002,"percentile":0.10305,"date":"2026-12-01T12:00:22.000Z"}}