{"id":"CVE-2024-35796","summary":"net: ll_temac: platform_get_resource replaced by wrong function","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: ll_temac: platform_get_resource replaced by wrong function\n\nThe function platform_get_resource was replaced with\ndevm_platform_ioremap_resource_byname and is called using 0 as name.\n\nThis eventually ends up in platform_get_resource_byname in the call\nstack, where it causes a null pointer in strcmp.\n\n\tif (type == resource_type(r) && !strcmp(r-\u003ename, name))\n\nIt should have been replaced with devm_platform_ioremap_resource.","modified":"2026-03-20T12:36:36.291578Z","published":"2024-05-17T13:23:07.558Z","related":["SUSE-SU-2024:2008-1","SUSE-SU-2024:2019-1","SUSE-SU-2024:2135-1","SUSE-SU-2024:2190-1","SUSE-SU-2024:2203-1","SUSE-SU-2024:2973-1","SUSE-SU-2025:20008-1","SUSE-SU-2025:20028-1","SUSE-SU-2025:20166-1","SUSE-SU-2025:20249-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35796.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/3a38a829c8bc27d78552c28e582eb1d885d07d11"},{"type":"WEB","url":"https://git.kernel.org/stable/c/46efbdbc95a30951c2579caf97b6df2ee2b3bef3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/476eed5f1c22034774902a980aa48dc4662cb39a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/553d294db94b5f139378022df480a9fb6c3ae39e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6d9395ba7f85bdb7af0b93272e537484ecbeff48"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7e9edb569fd9f688d887e36db8170f6e22bafbc8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/92c0c29f667870f17c0b764544bdf22ce0e886a1"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35796.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35796"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"bd69058f50d5ffa659423bcfa6fe6280ce9c760a"},{"fixed":"6d9395ba7f85bdb7af0b93272e537484ecbeff48"},{"fixed":"553d294db94b5f139378022df480a9fb6c3ae39e"},{"fixed":"46efbdbc95a30951c2579caf97b6df2ee2b3bef3"},{"fixed":"476eed5f1c22034774902a980aa48dc4662cb39a"},{"fixed":"7e9edb569fd9f688d887e36db8170f6e22bafbc8"},{"fixed":"92c0c29f667870f17c0b764544bdf22ce0e886a1"},{"fixed":"3a38a829c8bc27d78552c28e582eb1d885d07d11"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"77c8cfdf808410be84be56aff7e0e186b8c5a879"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-35796.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}