# CVE-2024-35796: net: ll_temac: platform_get_resource replaced by wrong function

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-05-17T13:23:07.558Z
- Modified: 2026-06-17T07:35:23.880Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

net: ll_temac: platform_get_resource replaced by wrong function

The function platform_get_resource was replaced with
devm_platform_ioremap_resource_byname and is called using 0 as name.

This eventually ends up in platform_get_resource_byname in the call
stack, where it causes a null pointer in strcmp.

	if (type == resource_type(r) && !strcmp(r->name, name))

It should have been replaced with devm_platform_ioremap_resource.

(As written by CVE List.)

## Affected

- Linux Linux: from bd69058f50d5ffa659423bcfa6fe6280ce9c760a before 6d9395ba7f85bdb7af0b93272e537484ecbeff48; from bd69058f50d5ffa659423bcfa6fe6280ce9c760a before 553d294db94b5f139378022df480a9fb6c3ae39e; from bd69058f50d5ffa659423bcfa6fe6280ce9c760a before 46efbdbc95a30951c2579caf97b6df2ee2b3bef3; from bd69058f50d5ffa659423bcfa6fe6280ce9c760a before 476eed5f1c22034774902a980aa48dc4662cb39a; from bd69058f50d5ffa659423bcfa6fe6280ce9c760a before 7e9edb569fd9f688d887e36db8170f6e22bafbc8; from bd69058f50d5ffa659423bcfa6fe6280ce9c760a before 92c0c29f667870f17c0b764544bdf22ce0e886a1; from bd69058f50d5ffa659423bcfa6fe6280ce9c760a before 3a38a829c8bc27d78552c28e582eb1d885d07d11; 77c8cfdf808410be84be56aff7e0e186b8c5a879; from 5.8.2 before 5.9; 5.9 (not affected: before 5.9; from 5.10.215 up to 5.10.*; from 5.15.154 up to 5.15.*; from 6.1.84 up to 6.1.*; from 6.6.24 up to 6.6.*; from 6.7.12 up to 6.7.*; from 6.8.3 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 5.8.2 before 5.10.215; from 5.11 before 5.15.154; from 5.16 before 6.1.84; from 6.2 before 6.6.24; from 6.7 before 6.7.12; from 6.8 before 6.8.3; 6.9
- debian debian_linux: 10.0

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/6d9395ba7f85bdb7af0b93272e537484ecbeff48> (patch)
- <https://git.kernel.org/stable/c/553d294db94b5f139378022df480a9fb6c3ae39e> (patch)
- <https://git.kernel.org/stable/c/46efbdbc95a30951c2579caf97b6df2ee2b3bef3> (patch)
- <https://git.kernel.org/stable/c/476eed5f1c22034774902a980aa48dc4662cb39a> (patch)
- <https://git.kernel.org/stable/c/7e9edb569fd9f688d887e36db8170f6e22bafbc8> (patch)
- <https://git.kernel.org/stable/c/92c0c29f667870f17c0b764544bdf22ce0e886a1> (patch)
- <https://git.kernel.org/stable/c/3a38a829c8bc27d78552c28e582eb1d885d07d11> (patch)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html> (third-party-advisory)

## Sources

- CVE List: [CVE-2024-35796](https://www.cve.org/CVERecord?id=CVE-2024-35796), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2024-35796](https://nvd.nist.gov/vuln/detail/CVE-2024-35796), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-35796 · Whole record: https://cve.day/CVE-2024-35796.json · Rebuilt by cve.day 2026-11-25T22:58:40.513Z
