# CVE-2022-48709: ice: switch: fix potential memleak in ice_add_adv_recipe()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `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.21%, higher than 11% of CVEs (2026-12-02)
- Published: 2024-05-21T15:22:50.054Z
- Modified: 2026-06-17T05:15:58.933Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

ice: switch: fix potential memleak in ice_add_adv_recipe()

When ice_add_special_words() fails, the 'rm' is not released, which will
lead to a memory leak. Fix this up by going to 'err_unroll' label.

Compile tested only.

(As written by CVE List.)

## Affected

- Linux Linux: from 8b032a55c1bd5d47527263445aba9dc45144b00d before 47f4ff6f23f00f5501ff2d7054c1a37c170a7aa0; from 8b032a55c1bd5d47527263445aba9dc45144b00d before 4a606ce68426c88ff2563382b33cc34f3485fe57; 5.16 (not affected: before 5.16; from 6.1.12 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 5.16 before 6.1.12; 6.2

## References

- <https://git.kernel.org/stable/c/47f4ff6f23f00f5501ff2d7054c1a37c170a7aa0> (patch)
- <https://git.kernel.org/stable/c/4a606ce68426c88ff2563382b33cc34f3485fe57> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2022-48709 · Whole record: https://cve.day/CVE-2022-48709.json · Rebuilt by cve.day 2026-11-25T22:58:19.820Z
