# CVE-2022-48957: dpaa2-switch: Fix memory leak in dpaa2_switch_acl_entry_add() and dpaa2_switch_acl_entry_remove()

- 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.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-10-21T20:05:43.107Z
- Modified: 2026-06-17T05:16:42.820Z
- 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:

dpaa2-switch: Fix memory leak in dpaa2_switch_acl_entry_add() and dpaa2_switch_acl_entry_remove()

The cmd_buff needs to be freed when error happened in
dpaa2_switch_acl_entry_add() and dpaa2_switch_acl_entry_remove().

(As written by CVE List.)

## Affected

- Linux Linux: from 1110318d83e8011c4dfcb2f7dd343bcfb1623c5f before 54d830e24247fa8361b016dd2069362866f45cb6; from 1110318d83e8011c4dfcb2f7dd343bcfb1623c5f before 785ee7a82297e1512d9061aae91699212ed65796; from 1110318d83e8011c4dfcb2f7dd343bcfb1623c5f before 4fad22a1281c500f15b172c9d261eff347ca634b; 5.13 (not affected: before 5.13; from 5.15.83 up to 5.15.*; from 6.0.13 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: from 5.13 before 5.15.83; from 5.16 before 6.0.13

## References

- <https://git.kernel.org/stable/c/54d830e24247fa8361b016dd2069362866f45cb6> (patch)
- <https://git.kernel.org/stable/c/785ee7a82297e1512d9061aae91699212ed65796> (patch)
- <https://git.kernel.org/stable/c/4fad22a1281c500f15b172c9d261eff347ca634b> (patch)

## Sources

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

---

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