Skip to content
Memory corruption Advisory Advanced CVE-2024-38140

Microsoft Pragmatic General Multicast Server PgmCloseConnection stale memory dereference

The PGM driver in Windows 10 mishandles session cleanup when a crafted sequence of multicast packets is processed, leaving a stale session structure that is later dereferenced. An unauthenticated remote attacker could send such packets to corrupt kernel memory, potentially leading to code execution or a crash.

A member Follow

Originally disclosed on Cisco Talos

Critical 9.8 View original

A memory corruption vulnerability exists in the Pragmatic General Multicast server in Microsoft Windows 10 Kernel. Specially crafted network packets can lead to access of stale memory structure resulting in memory corruption.

a member, on Cisco Talos

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the session teardown path does not fully clear or invalidate the session structure, so a later packet dereferences memory that has already been released (incomplete cleanup).

Impact

An unauthenticated remote attacker could corrupt kernel memory, potentially achieving code execution with high confidentiality, integrity and availability impact.

What the attacker needed

Network reachability to the PGM port; PGM/RMCAST driver loaded and bound; no authentication required

How it was found

  1. Send a first PGM packet of type OD_TYPE with valid flags and size to create a new session.
  2. Send a second PGM packet of type SPM_TYPE carrying the PARITY_PRM option so the driver allocates an FEC buffer and context in the session.
  3. Send further packets that cause the session to be torn down while the stale structure remains referenced.
  4. Trigger the stale dereference through the PgmCloseConnection path, resulting in memory corruption.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Windows has a networking driver that handles a multicast protocol used for reliable group messaging. The report says that by sending a particular sequence of network messages, an outsider can make the driver use memory that has already been freed, which can crash the machine or let the attacker run their own code with high privileges.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by A member

View all

110 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.