A crack in the wall between virtual machines: how the Xen flaw Claude found works
Two bugs in Xen, the hypervisor that keeps cloud virtual machines apart, let one VM reach into other VMs' memory. Anthropic found them using Claude. Here is where the bug was and who needs to do what.
A server you rent in the cloud is often not a machine of its own. A powerful computer in a data center is split into dozens of virtual machines by virtualization software, and each one may belong to a different customer. The whole arrangement rests on one promise: virtual machines that share the same hardware cannot see each other's memory. One of the pieces of software that keeps that promise is Xen, with more than twenty years behind it.
In its XSA-523 security advisory, published on November 3, the Xen Project described a spot where that wall had worn thin. Two separate bugs (CVE-2026-102703 and CVE-2026-102704) let a malicious virtual machine read and write the memory of other virtual machines on the same server, including the privileged domain that runs the system. The advisory's credits section has a line that stands out: the issue was first discovered by Anthropic using Claude. Patches were released together with the advisory. Here is where the bug was, who needs to do what, and where AI fits into the story.
The hypervisor is the building manager
An apartment building is a handy way to picture virtualization. The building is the physical server and the apartments are virtual machines. Each apartment has its own door and its own furniture, and nobody can walk into a neighbor's flat. The one who enforces that rule is the building manager: in technical terms the hypervisor, the thin layer of software sitting between the hardware and the virtual machines. Xen is such a hypervisor.
In Xen one apartment is special. This domain, called Dom0, starts and stops the other virtual machines and manages access to real hardware such as disks and network cards. In the analogy it is the management office, where the building's key cabinet hangs. The other virtual machines are called domains or guests in Xen's vocabulary. The most sensitive security line is that an ordinary guest must never reach the management office or a neighbor.
Grant copy: a parcel system between neighbors
Apartments cannot be sealed shut, though. Data a virtual machine writes to disk, or a packet it receives from the network, has to pass at some point to the management office or to another domain running the driver. Xen uses a mechanism called the grant table for this. When a domain wants to open a particular page of its memory to another domain, it creates a grant entry and hands the other side that entry's number. The number is called a grant reference; think of it as the number on a parcel claim ticket.
Grant copy is the copy operation of this system. A domain can tell Xen: take this many bytes from the page behind this claim ticket and put them into this page of mine. Xen does the copying itself and checks permissions along the way. The place to copy from or to can be given either as a claim ticket or as a frame number in memory. The rule is clear, though: copying by frame number is allowed only for the requesting domain's own memory. Someone else's memory can only be touched through a claim ticket they have issued.
A shortcut for speed, and two small check errors
According to the advisory, grant copy operations often arrive in batches: a series of copies on adjacent address ranges in the same source or destination page. Xen takes a shortcut here for performance. It keeps the details it validated in the first operation and reuses that note in later operations on the same page instead of validating again. The problem was in the conditions that decided when the note had to be checked again.
The first bug (CVE-2026-102703) was that two different kinds of numbers in that note could be mixed up. According to the patch description, a likely invalid claim-ticket number left over from an earlier element of the batch could be mistaken for a possibly valid frame number. The second bug (CVE-2026-102704) was that the check enforcing "frame numbers only for your own memory" sat in the wrong place. It lived inside a function that only runs on some steps, when it needed to run for every element of the batch.
Back to the building: the doorman checks the ID of someone carrying several parcels in a row once and waves the rest through. Most of the time that is a convenience. But once the labels on the parcels get mixed up, or the ID is only checked on the first parcel, someone can make it all the way to a neighbor's door. The advisory's impact section says exactly that: a malicious guest can read and write arbitrary memory belonging to other domains, including Dom0.
The fixes are small. The first patch also compares whether the cached entry really is a claim ticket or a frame before reusing it, a change of a few lines. The second patch moves the "own memory only" check into the function that runs for every element of the batch. Both patches were written by Xen developer Jan Beulich and reviewed by Andrew Cooper, and both carry an "Assisted-by: Claude" line.
Who is affected and what to do
According to the advisory, every Xen version from 4.6 onwards is affected, while 4.5 and earlier are not. The "Fixes" line in the patches shows the bug came in with an old performance change that deferred releasing pages acquired in a grant copy. In other words, the code had been sitting there for years. There is no known mitigation; the fix is to apply the patches. The Xen Project released one patch set for the development branch and 4.19.x and a separate set for 4.18.x and 4.17.x, and it encourages downstreams to move to the tip of the stable branch before applying them.
For most cloud customers the work falls on the provider. Xen's security policy has a predisclosure process for this: organizations on the list are told before an advisory goes public and may deploy the patches on their live systems during that period. The public release was on November 3 at 12:00 UTC.
For people who run Xen themselves it is more direct. Qubes OS, which builds its security on splitting work into virtual machines, announced the same day in bulletin QSB-121 that all supported releases are affected. Xen 4.19.6-3 packages are ready in dom0 for Qubes 4.3 and will move to the stable repository within two weeks after community testing. Users only need to update as usual with the Qubes Update tool and then restart dom0. Anyone running Xen on their own servers can see the version in the xen_major and xen_minor lines of xl info and follow their distribution's security updates.
AI on the defenders' side
The advisory's credits name three parties together. Anthropic discovered the issue using Claude, and Stephan Lipp of Ada Logics validated it. The CodeAnt AI Security Research Team then reported the same issue independently. Both teams appear on "Reported-by" lines in the patches.
The finding looks like part of a wider effort by Anthropic in open-source software. According to the company's coordinated vulnerability disclosure dashboard, Anthropic uses Claude models to search open-source projects for vulnerabilities, has findings validated by six external security research firms, and reports the human-reviewed ones to the software's maintainers. As of November 2, the dashboard lists 5,087 vulnerabilities disclosed to maintainers across 680 open-source projects, 629 of them patched. It also notes that human review is the step that sets the pace.
XSA-523 is a good example of how that pipeline works: AI spots a missing check that has been in place for about a decade, an independent security researcher confirms it, the project's own developers write and review the fix, and large users can receive the patch before the public advisory. The advisory contains no information about the flaw being exploited.
For now the details come from the Xen Project's advisory, the patches and the Qubes bulletin; how Claude found the bug has not been described in detail. For a fuller picture of the finding and of AI's role in security work, follow evaluations from independent researchers as well.
Update, November 5: the team that found it independently walks through the attack
CodeAnt AI, which found the flaw independently of Anthropic, published a detailed technical write-up on November 4 and named it "Xenbleed". According to the post, CodeAnt AI researcher Hemanshu Baviskar built a working guest-to-dom0 exploit chain on XenServer 9 running Xen 4.21.2, a current release. The team sent the report to the Xen security team and to Cloud Software Group, which makes XenServer, on October 13. The next day Xen's team replied that the issue was already known to them, that a fix was being prepared, and offered independent discovery credit.
The post traces the bug to January 29, 2015, when a performance change made guest networking up to 25 percent faster. The change lets Xen remember which domains it has locked across a batch of copy requests. The rule that a guest may use raw page numbers only for its own memory, however, is checked only when a domain is first locked. In the method CodeAnt describes, the guest sends a single batch with two entries. The first names dom0 with a deliberately invalid grant reference; the grant lookup fails, but the locked dom0 stays cached. The second keeps the same domain IDs and swaps the grant reference for a raw dom0 page number. Because the cache matches, the check never runs again and Xen copies that page into the guest. Swapping source and destination turns the read into a write.
The team built its proof step by step. A standalone raw-page request is refused with "permission denied"; the same request succeeds when it follows the invalid-grant entry. The guest scanned for a marker page that dom0 had never shared, read it and changed it, and dom0 confirmed the change on its side. In the final step the team wrote a 13-byte stub into an empty region of a dom0 kernel event handler, had it call one of the kernel's own functions, then restored both changes and verified them by reading back. In its own assessment CodeAnt rates both flaws 9.4 on CVSS 4.0, and notes that its chain uses CVE-2026-102704 and that it did not separately exercise CVE-2026-102703. The team recommends that systems running untrusted guests install an update that includes both fixes.
Sources: Xen Project XSA-523 advisory, XSA-523 first patch, XSA-523 second patch, Qubes OS QSB-121, Anthropic disclosure dashboard