# CVE-2024-56765: powerpc/pseries/vas: Add close() callback in vas\_vm\_ops struct

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-01-06T16:20:43.966Z
- **Modified:** 2026-08-05T11:46:25.642Z

## Who should check

- Anyone running Linux \>= 37e6764895ef7431f45ff603a548549d409993d2, \< 8b2282b5084521254a2cd9742a3f4e1d5b77f843; \>= 37e6764895ef7431f45ff603a548549d409993d2, \< b7f60ffdfd96f8fc826f1d61a1c6067d828e20b9; \>= 37e6764895ef7431f45ff603a548549d409993d2, \< 6d9cd27105459f169993a4c5f216499a946dbf34; \>= 37e6764895ef7431f45ff603a548549d409993d2, \< 05aa156e156ef3168e7ab8a68721945196495c17
- Anyone running Linux 5.18

## Description

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

powerpc/pseries/vas: Add close() callback in vas\_vm\_ops struct

The mapping VMA address is saved in VAS window struct when the
paste address is mapped. This VMA address is used during migration
to unmap the paste address if the window is active. The paste
address mapping will be removed when the window is closed or with
the munmap(). But the VMA address in the VAS window is not updated
with munmap() which is causing invalid access during migration.

The KASAN report shows:
\[16386.254991\] BUG: KASAN: slab-use-after-free in reconfig\_close\_windows+0x1a0/0x4e8
\[16386.255043\] Read of size 8 at addr c00000014a819670 by task drmgr/696928

\[16386.255096\] CPU: 29 UID: 0 PID: 696928 Comm: drmgr Kdump: loaded Tainted: G    B              6.11.0-rc5-nxgzip \#2
\[16386.255128\] Tainted: \[B\]=BAD\_PAGE
\[16386.255148\] Hardware name: IBM,9080-HEX Power11 (architected) 0x820200 0xf000007 of:IBM,FW1110.00 (NH1110\_016) hv:phyp pSeries
\[16386.255181\] Call Trace:
\[16386.255202\] \[c00000016b297660\] \[c0000000018ad0ac\] dump\_stack\_lvl+0x84/0xe8 (unreliable)
\[16386.255246\] \[c00000016b297690\] \[c0000000006e8a90\] print\_report+0x19c/0x764
\[16386.255285\] \[c00000016b297760\] \[c0000000006e9490\] kasan\_report+0x128/0x1f8
\[16386.255309\] \[c00000016b297880\] \[c0000000006eb5c8\] \_\_asan\_load8+0xac/0xe0
\[16386.255326\] \[c00000016b2978a0\] \[c00000000013f898\] reconfig\_close\_windows+0x1a0/0x4e8
\[16386.255343\] \[c00000016b297990\] \[c000000000140e58\] vas\_migration\_handler+0x3a4/0x3fc
\[16386.255368\] \[c00000016b297a90\] \[c000000000128848\] pseries\_migrate\_partition+0x4c/0x4c4
...

\[16386.256136\] Allocated by task 696554 on cpu 31 at 16377.277618s:
\[16386.256149\]  kasan\_save\_stack+0x34/0x68
\[16386.256163\]  kasan\_save\_track+0x34/0x80
\[16386.256175\]  kasan\_save\_alloc\_info+0x58/0x74
\[16386.256196\]  \_\_kasan\_slab\_alloc+0xb8/0xdc
\[16386.256209\]  kmem\_cache\_alloc\_noprof+0x200/0x3d0
\[16386.256225\]  vm\_area\_alloc+0x44/0x150
\[16386.256245\]  mmap\_region+0x214/0x10c4
\[16386.256265\]  do\_mmap+0x5fc/0x750
\[16386.256277\]  vm\_mmap\_pgoff+0x14c/0x24c
\[16386.256292\]  ksys\_mmap\_pgoff+0x20c/0x348
\[16386.256303\]  sys\_mmap+0xd0/0x160
...

\[16386.256350\] Freed by task 0 on cpu 31 at 16386.204848s:
\[16386.256363\]  kasan\_save\_stack+0x34/0x68
\[16386.256374\]  kasan\_save\_track+0x34/0x80
\[16386.256384\]  kasan\_save\_free\_info+0x64/0x10c
\[16386.256396\]  \_\_kasan\_slab\_free+0x120/0x204
\[16386.256415\]  kmem\_cache\_free+0x128/0x450
\[16386.256428\]  vm\_area\_free\_rcu\_cb+0xa8/0xd8
\[16386.256441\]  rcu\_do\_batch+0x2c8/0xcf0
\[16386.256458\]  rcu\_core+0x378/0x3c4
\[16386.256473\]  handle\_softirqs+0x20c/0x60c
\[16386.256495\]  do\_softirq\_own\_stack+0x6c/0x88
\[16386.256509\]  do\_softirq\_own\_stack+0x58/0x88
\[16386.256521\]  \_\_irq\_exit\_rcu+0x1a4/0x20c
\[16386.256533\]  irq\_exit+0x20/0x38
\[16386.256544\]  interrupt\_async\_exit\_prepare.constprop.0+0x18/0x2c
...

\[16386.256717\] Last potentially related work creation:
\[16386.256729\]  kasan\_save\_stack+0x34/0x68
\[16386.256741\]  \_\_kasan\_record\_aux\_stack+0xcc/0x12c
\[16386.256753\]  \_\_call\_rcu\_common.constprop.0+0x94/0xd04
\[16386.256766\]  vm\_area\_free+0x28/0x3c
\[16386.256778\]  remove\_vma+0xf4/0x114
\[16386.256797\]  do\_vmi\_align\_munmap.constprop.0+0x684/0x870
\[16386.256811\]  \_\_vm\_munmap+0xe0/0x1f8
\[16386.256821\]  sys\_munmap+0x54/0x6c
\[16386.256830\]  system\_call\_exception+0x1a0/0x4a0
\[16386.256841\]  system\_call\_vectored\_common+0x15c/0x2ec

\[16386.256868\] The buggy address belongs to the object at c00000014a819670
                which belongs to the cache vm\_area\_struct of size 168
\[16386.256887\] The buggy address is located 0 bytes inside of
                freed 168-byte region \[c00000014a819670, c00000014a819718)

\[16386.256915\] The buggy address belongs to the physical page:
\[16386.256928\] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x14a81
\[16386.256950\] memcg:c0000000ba430001
\[16386.256961\] anon flags: 0x43ffff800000000(node=4\|zone=0\|lastcpupid=0x7ffff)
\[16386.256975\] page\_type: 0xfdffffff(slab)
\[16386
---truncated---

## Affected and fixed versions

- Linux: \>= 37e6764895ef7431f45ff603a548549d409993d2, \< 8b2282b5084521254a2cd9742a3f4e1d5b77f843; \>= 37e6764895ef7431f45ff603a548549d409993d2, \< b7f60ffdfd96f8fc826f1d61a1c6067d828e20b9; \>= 37e6764895ef7431f45ff603a548549d409993d2, \< 6d9cd27105459f169993a4c5f216499a946dbf34; \>= 37e6764895ef7431f45ff603a548549d409993d2, \< 05aa156e156ef3168e7ab8a68721945196495c17 (cvelist)
- Linux: 5.18 (cvelist)

## Mitigation

- Upgrade Linux to 05aa156e156ef3168e7ab8a68721945196495c17 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-56765. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-56765.md
Affected: Linux >= 37e6764895ef7431f45ff603a548549d409993d2, < 8b2282b5084521254a2cd9742a3f4e1d5b77f843; >= 37e6764895ef7431f45ff603a548549d409993d2, < b7f60ffdfd96f8fc826f1d61a1c6067d828e20b9; >= 37e6764895ef7431f45ff603a548549d409993d2, < 6d9cd27105459f169993a4c5f216499a946dbf34; >= 37e6764895ef7431f45ff60…
Fixed in: Linux 8b2282b5084521254a2cd9742a3f4e1d5b77f843, Linux 6d9cd27105459f169993a4c5f216499a946dbf34, Linux 05aa156e156ef3168e7ab8a68721945196495c17

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-56765 being exploited?

There is no confirmed exploitation: CVE-2024-56765 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-56765?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-56765?

Linux \>= 37e6764895ef7431f45ff603a548549d409993d2, \< 8b2282b5084521254a2cd9742a3f4e1d5b77f843; \>= 37e6764895ef7431f45ff603a548549d409993d2, \< b7f60ffdfd96f8fc826f1d61a1c6067d828e20b9; \>= 37e6764895ef7431f45ff603a548549d409993d2, \< 6d9cd27105459f169993a4c5f216499a946dbf34; \>= 37e6764895ef7431f45ff603a548549d409993d2, \< 05aa156e156ef3168e7ab8a68721945196495c17; Linux 5.18.

### Is there a fix for CVE-2024-56765?

Yes. Fixed in Linux 8b2282b5084521254a2cd9742a3f4e1d5b77f843, Linux 6d9cd27105459f169993a4c5f216499a946dbf34, Linux 05aa156e156ef3168e7ab8a68721945196495c17. Upgrade Linux to 05aa156e156ef3168e7ab8a68721945196495c17 or later.

### How do I check if I'm affected by CVE-2024-56765?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/8b2282b5084521254a2cd9742a3f4e1d5b77f843>
- patch: <https://git.kernel.org/stable/c/b7f60ffdfd96f8fc826f1d61a1c6067d828e20b9>
- patch: <https://git.kernel.org/stable/c/6d9cd27105459f169993a4c5f216499a946dbf34>
- patch: <https://git.kernel.org/stable/c/05aa156e156ef3168e7ab8a68721945196495c17>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-56765>

HTML: <https://flawdb.com/CVE-2024-56765> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-56765>
