# CVE-2022-50423: ACPICA: Fix use-after-free in acpi_ut_copy_ipackage_to_ipackage()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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.17%, higher than 7% of CVEs (2026-12-01)
- Published: 2025-10-01T11:41:56.083Z
- Modified: 2026-08-05T08:58:45.759Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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

ACPICA: Fix use-after-free in acpi_ut_copy_ipackage_to_ipackage()

There is an use-after-free reported by KASAN:

  BUG: KASAN: use-after-free in acpi_ut_remove_reference+0x3b/0x82
  Read of size 1 at addr ffff888112afc460 by task modprobe/2111
  CPU: 0 PID: 2111 Comm: modprobe Not tainted 6.1.0-rc7-dirty
  Hardware name: QEMU Standard PC (i440FX + PIIX, 1996),
  Call Trace:
   <TASK>
   kasan_report+0xae/0xe0
   acpi_ut_remove_reference+0x3b/0x82
   acpi_ut_copy_iobject_to_iobject+0x3be/0x3d5
   acpi_ds_store_object_to_local+0x15d/0x3a0
   acpi_ex_store+0x78d/0x7fd
   acpi_ex_opcode_1A_1T_1R+0xbe4/0xf9b
   acpi_ps_parse_aml+0x217/0x8d5
   ...
   </TASK>

The root cause of the problem is that the acpi_operand_object
is freed when acpi_ut_walk_package_tree() fails in
acpi_ut_copy_ipackage_to_ipackage(), lead to repeated release in
acpi_ut_copy_iobject_to_iobject(). The problem was introduced
by "8aa5e56eeb61" commit, this commit is to fix memory leak in
acpi_ut_copy_iobject_to_iobject(), repeatedly adding remove
operation, lead to "acpi_operand_object" used after free.

Fix it by removing acpi_ut_remove_reference() in
acpi_ut_copy_ipackage_to_ipackage(). acpi_ut_copy_ipackage_to_ipackage()
is called to copy an internal package object into another internal
package object, when it fails, the memory of acpi_operand_object
should be freed by the caller.

(As written by CVE List.)

## Affected

- Linux Linux: from 8aa5e56eeb61a099ea6519eb30ee399e1bc043ce before 133462d35dae95edb944af86b986d4c9dec59bd1; from 8aa5e56eeb61a099ea6519eb30ee399e1bc043ce before 02f237423c9c6a18e062de2d474f85d5659e4eb9; from 8aa5e56eeb61a099ea6519eb30ee399e1bc043ce before c9125b643fc51b8e662f2f614096ceb45a0adbc3; from 8aa5e56eeb61a099ea6519eb30ee399e1bc043ce before dfdde4d5138bc023897033a5ac653a84e94805be; from 8aa5e56eeb61a099ea6519eb30ee399e1bc043ce before 02617006b5a46f2ea55ac61f5693c7afd7bf9276; from 8aa5e56eeb61a099ea6519eb30ee399e1bc043ce before 6fde666278f91b85d71545a0ebbf41d8d7af8074; from 8aa5e56eeb61a099ea6519eb30ee399e1bc043ce before f51b2235e4f320edc839c3e5cb0d1f8a6e8657c6; from 8aa5e56eeb61a099ea6519eb30ee399e1bc043ce before 01f2c2052ea50fb9a8ce12e4e83aed0267934ef0; from 8aa5e56eeb61a099ea6519eb30ee399e1bc043ce before 470188b09e92d83c5a997f25f0e8fb8cd2bc3469; b3e98f0c4f996cd53b80bad71f0d7e4a2cf3a4e8; 7af5504c102a378376101dbd160246b10a814dd0; e29a15484d7ea949e49ae7fb7e576a575da824a6; and 6 more (not affected: before 3.17; from 4.9.337 up to 4.9.*; from 4.14.303 up to 4.14.*; from 4.19.270 up to 4.19.*; from 5.4.229 up to 5.4.*; from 5.10.163 up to 5.10.*; from 5.15.86 up to 5.15.*; from 6.0.16 up to 6.0.*; from 6.1.2 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 3.10.55 before 3.11; from 3.12.29 before 3.13; from 3.14.19 before 3.15; from 3.16.3 before 4.9.337; from 4.10 before 4.14.303; from 4.15 before 4.19.270; from 4.20 before 5.4.229; from 5.5 before 5.10.163; from 5.11 before 5.15.86; from 5.16 before 6.0.16; from 6.1 before 6.1.2

## Every score

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

## References

- <https://git.kernel.org/stable/c/133462d35dae95edb944af86b986d4c9dec59bd1> (patch)
- <https://git.kernel.org/stable/c/02f237423c9c6a18e062de2d474f85d5659e4eb9> (patch)
- <https://git.kernel.org/stable/c/c9125b643fc51b8e662f2f614096ceb45a0adbc3> (patch)
- <https://git.kernel.org/stable/c/dfdde4d5138bc023897033a5ac653a84e94805be> (patch)
- <https://git.kernel.org/stable/c/02617006b5a46f2ea55ac61f5693c7afd7bf9276> (patch)
- <https://git.kernel.org/stable/c/6fde666278f91b85d71545a0ebbf41d8d7af8074> (patch)
- <https://git.kernel.org/stable/c/f51b2235e4f320edc839c3e5cb0d1f8a6e8657c6> (patch)
- <https://git.kernel.org/stable/c/01f2c2052ea50fb9a8ce12e4e83aed0267934ef0> (patch)
- <https://git.kernel.org/stable/c/470188b09e92d83c5a997f25f0e8fb8cd2bc3469> (patch)

## Sources

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

---

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