Where
AND
-Infinity
0

Vendor Risk Score

See how microsoft compares to other vendors in security performance

View Risk Score →

Software

Severity
2.1
Use After Free
AV:L/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

(FreeRDP before 3.34.0 contains a use-after-free vulnerability in the W ...)

1 / 3
Source: OSV
First published (updated )
Severity
2
AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Incorrect authorization in AWS credential selection in the C Driver

1 / 2
Source: Microsoft
First published (updated )
Severity
2.1
CRLF Injection
AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Summary

Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting') vulnerability in Erlang OTP inets (httpc module) allows HTTP Request Splitting.

httpc writes request header names and values to the wire without neutralizing CR, LF or NUL characters. On the default path httprequest:mkkeyvaluestr/2, and with the headersasis option httpcrequest:httpheaders/2, build each header line by plain concatenation of the name, ": ", the value and CRLF. A CR/LF in a name or value ends the header line early. An attacker who controls data that an application puts into a header passed to httpc:request/4,5 can add or override request headers, or append a second request on the same connection.

Applications that pass only constant or validated header names and values are not affected. The request line is not affected, because uristring rejects URLs that contain raw CR/LF.

This issue affects OTP from OTP 17.0 before OTP 27.3.4.20, OTP 28.5.0.9, and OTP 29.1.3, corresponding to inets from 5.10 before 9.3.2.9, 9.6.2.5, and 9.8.2. Whether OTP before OTP 17.0, corresponding to inets before 5.10, is affected is unknown.

Proof of concept

1. Start a TCP listener that prints the bytes it receives, for example on localhost:4444. 2. Call httpc:request(get, {"http://localhost:4444", [{"a: b\r\nc", "d\r\ne: f"}]}, [], []). 3. The listener receives three header lines (a: b, c: d, e: f) instead of one. 4. Repeat with [{headersasis, true}] as the fourth argument and an explicit host header. The same three lines arrive.

Impact

An attacker who controls data in a request header can add or override headers such as Authorization, Cookie, Host or X-Forwarded-For, which may affect authentication, routing or caching decisions on the target server or on intermediaries. With an empty line, the attacker can send a second, attacker-chosen request to the target server over the connection that the application opened.

Workarounds

Validate request header names and values before you pass them to httpc:request/4,5. Reject or replace any name or value that contains CR (\r), LF (\n) or NUL (\0), and accept only header names made of RFC 9110 token characters. Where the application forwards headers from another source, use a fixed allowlist of header names.

1 / 6
Source: OSV
First published (updated )
Severity
2.1
Use After Free
AV:L/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

[GHSA-76c4-7552-ffhv]

1 / 3
Source: OSV
First published (updated )
Severity
1
EPSS
0.22%
Buffer Overflow

cxl/features: Ensure that count is set before access to ent[] countedby()

1 / 4
Source: Microsoft
First published (updated )
Severity
2.3
EPSS
0.31%
AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Bluetooth: L2CAP: Only accept connection responses to outstanding requests

1 / 4
Source: Microsoft
First published (updated )
Severity
1
EPSS
0.19%
Use After Free

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

net/9p/usbg: Fix use-after-free in disableusb9pfs()

disableusb9pfs() frees the IN and OUT usbrequest objects before it disables the corresponding endpoints. If either request is still queued, the later usbepdisable() call cancels the endpoint queue and the UDC driver can still access the already freed request.

With dummyhcd and KASAN, this is reproducible by queueing the OUT request and then disconnecting the configfs gadget:

BUG: KASAN: slab-use-after-free in dummydisable+0x2b4/0x300 Read of size 8 at addr ffff888009702400 by task sh/1 usbepdisable+0x8e/0x1f0 usb9pfsfuncunbind+0x193/0x350 gadgetdevdescUDCstore+0x135/0x280

dummyfreerequest() also warns because the request is freed while its queue entry is still linked.

Disable both endpoints before freeing the request objects. This lets usbepdisable() cancel any queued transfers and invoke the completion callback while the request storage is still valid. The request objects are then freed only after they have been removed from the endpoint queues.

1 / 4
Source: MITRE
First published (updated )
Severity
1
EPSS
0.16%

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

net/9p/usbg: also disable endpoints on p9usbgclose

The close function has to fully reverse the state change of 9pcreate (mount) and the potential call of setalt(1). This includes to ensure that the usage of the endpoints is not active any more.

1 / 4
Source: MITRE
First published (updated )
Severity
1
EPSS
0.16%

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

net/9p/usbg: always reset completion when disconnecting

When some tx or rx transfers were pending while closing the connection, the completion handler could catch one pending completion call. To ensure a normal start when mounting again, we have to reset the completion and flush any pending completions.

1 / 4
Source: MITRE
First published (updated )
Severity
1
EPSS
0.16%

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

net/9p/usbg: fix outreq buffer leak in disableusb9pfs

usb9pfs->outreq is allocated with allocepreq(), which also allocates the request's data buffer (req->buf). disableusb9pfs() frees it with plain usbepfreerequest(), which only frees the usbrequest structure itself and leaks req->buf on every close.

Use freeepreq() instead, matching the allocator, as documented by its own comment ("Requests allocated via allocepreq() must be freed by freeepreq()").

1 / 4
Source: MITRE
First published (updated )
Severity
1
EPSS
0.16%

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

net/9p/usbg: remove bogus context initialization in allocrequests

allocrequests() initializes usb9pfs->inreq->context to point at the struct fusb9pfs instance itself. usb9pfsqueuetx() later overwrites this with the real struct p9reqt pointer before every transmit, and usb9pfstxcomplete() clears it back to NULL after each completion, so inreq->context only ever holds a valid p9reqt once a request has actually been queued.

usb9pfscleartx(), however, can run at any time (mount close, gadget disable) independent of whether a request was ever queued. If it runs before the first usb9pfstransmit(), it reads the leftover sentinel value, type-confuses the struct fusb9pfs pointer as a struct p9reqt, and both writes through it (req->terr = -ECONNRESET) and hands it to p9clientcb(), which manipulates req->wq and req->refcount at bogus offsets inside fusb9pfs. This reliably corrupts memory or panics whenever the transport is torn down before any 9p request has been transmitted, e.g. mounting and immediately unmounting, or a cable disconnect racing the very first request.

usb9pfs->outreq->context is set the same way but is never read by this transport (usb9pfsrxcomplete() identifies the instance via ep->driverdata instead), so it serves no purpose either.

Both endpoints' ->driverdata are already set to usb9pfs in enableendpoint(), which is what the completion handlers actually use to recover the fusb9pfs instance. Just drop the leftover ->context assignments; usbepallocrequest()/allocepreq() already return zeroed requests, so inreq->context correctly starts out NULL.

1 / 4
Source: MITRE
First published (updated )
Severity
1
EPSS
0.16%

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

net/9p/usbg: clear stale client pointer on close

p9usbgclose() tears down the client transport, but usb9pfs keeps using usb9pfs->client from asynchronous TX and RX completion handlers. A late completion can therefore dereference a client that has already been freed during mount teardown.

Clear usb9pfs->client under usb9pfs->lock when closing the transport, detach any pending TX request from inreq->context, and make the TX/RX completion handlers bail out once the transport has been detached. This keeps late completions from touching a freed or rebound p9client.

1 / 4
Source: MITRE
First published (updated )
Severity
2.3
EPSS
0.17%
AV:A/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

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

wifi: mac80211: reload TDLS header pointer after skblinearize()

ieee80211processtdlschannelswitch() sets tf = skb->data before it calls skblinearize(), and reads tf->actioncode afterwards.

ieee80211rxhdata() queues TDLS channel switch requests and responses to the interface after pulling only offsetof(struct ieee80211tdlsdata, u) bytes, so the skb can still be non-linear when the interface work handles it. Drivers that build paged RX skbs do this for every frame that does not fit into the skb head, e.g. iwlwifi (mvm), which is also the only mac80211 driver that sets NL80211FEATURETDLSCHANNELSWITCH. If the remaining data does not fit into the tailroom, skblinearize() moves the data to a new head and frees the old one, and the action code is then read from freed memory. Depending on what that memory holds by then, the frame is handled as before or ends in the WARNONONCE() of the default case.

The frame only has to be a data frame with the TDLS ethertype from an authorized peer, e.g. relayed by the AP from another station in the BSS; the read happens before the sender is checked to be a TDLS peer.

Load tf after skblinearize(), as the request and response handlers already do.

Found by static analysis tool CodeQL.

1 / 4
Source: MITRE
First published (updated )
Severity
2
EPSS
0.16%
AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

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

wifi: mac80211: reinstate IEEE80211TXCTLAMPDU flag in ieee80211txprepagg()

The commit 592234e941f1 ("wifi: mac80211: Fix iTXQ AMPDU fragmentation handling") changed the way handling of the IEEE80211TXCTLAMPDU flag is done in mac80211, so the only place it is set is in ieee80211txdequeue().

This means that any frames that are sent to the driver via drvtx() will no longer have the flag set. In particular, this affects packets going through ieee80211txpending(). Evan reported that this can result in the ath9k driver failing to account such packets in its block ack window, eventually overrunning the window and stalling TX.

Fix this by reinstating the flag in ieee80211txprepagg() when inside a valid block ack window. This should be harmless for the TXQ path, and will reinstate the previous behaviour for drivers that use the flag as a signal to track the packet in the window.

1 / 4
Source: MITRE
First published (updated )
Severity
1
EPSS
0.17%
Null Pointer Dereference, XEE

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

scsi: aic79xx: Fix NULL pointer dereference in device reset

Since commit c67e63800446 ("scsi: aic79xx: Do not reference SCSI command when resetting device") the device reset SCB has no SCSI command, but ahdlinuxdevreset() still sets its residual, and ahdabortscbs(), which completes it, sets its status. Seen on an AIC-7902 when a failing disk triggered a device reset, which killed the SCSI error handler:

BUG: kernel NULL pointer dereference, address: 0000009c EIP: ahdlinuxdevreset.cold+0xee/0x26e

Add NULL command checks to the accessors in aic79xxosm.h. Also skip autosense for an SCB without a command and complete it with ahddone() right away: the REQUEST SENSE path can clear SCBDEVICERESET, after which ahddone() would dereference the missing command.

1 / 4
Source: MITRE
First published (updated )
Severity
2
EPSS
0.18%
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H/E:U

batman-adv: tt: don't drop local events queued during TVLV update

1 / 4
Source: Microsoft
First published (updated )
Severity
2.3
EPSS
0.17%
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L/E:U

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

ksmbd: require DELETE access for delete-on-close opens

smb2open() accepts FILEDELETEONCLOSE on an existing file without DELETE in DesiredAccess. When the request asks only for FILEREADATTRIBUTES or READCONTROL, it also skips inodepermission() and the parent directory MAYWRITE | MAYEXEC check that delete-on-close is meant to get. The file is then marked for deletion by a caller who could not delete it.

The unlink happens later, in ksmbdinodeclose(), when the last handle on the inode is closed, and it runs with the credentials of that handle. If the caller closes last, the unlink fails. If another user who can write the parent directory, such as the file's owner, still has the file open, the file is deleted when that user closes it. Until then new opens of the file fail with STATUSDELETEPENDING. So a user with only search permission on a directory can delete a file in it, or block opens of it, while the owner has it open.

A MAXIMUMALLOWED open that also requests DELETE has the same problem. The requested access is replaced with the maximal access, which does not include DELETE when the caller cannot write the parent directory, and the later permission checks are skipped as already done.

MS-FSA 2.1.5.1 requires an open with FILEDELETEONCLOSE and without DELETE in DesiredAccess to fail with STATUSINVALIDPARAMETER, and Samba does the same. Add that check to the CreateOptions validation, using the generic-mapped DesiredAccess so that GENERICALL still qualifies. This also refuses MAXIMUMALLOWED with FILEDELETEONCLOSE but no explicit DELETE, as MS-FSA and Samba do. When MAXIMUMALLOWED is requested with DELETE but the maximal access does not include DELETE, fail with STATUSACCESSDENIED. With DELETE requested, delete-on-close opens go through the existing parent directory check.

1 / 4
Source: MITRE
First published (updated )
Severity
3.3
EPSS
0.17%
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:U

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

tmpfs: keep the quota soft limits of an unused id

When the last reference to a dquot goes away, shmemreleasedquot() stores its limits in the rb tree of the mount, unless shmemisemptydquot() says that there is nothing worth storing. That function looks at the usage and at the two hard limits only.

So if the administrator sets nothing but soft limits for an id that owns no file yet, the entry is thrown away as soon as the dquot that QSETQUOTA used is released, and the id never gets to see a limit.

To fix it, compare the soft limits as well: an entry can be empty only if both soft limits are zero as well, which is exactly what shmemacquiredquot() sets for a new entry.

Fix generated by an LLM and sent by Josef Bacik in private.

[ david: slightly adjusted description ]

1 / 4
Source: MITRE
First published (updated )
Severity
3.3
EPSS
0.18%
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:U

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

vhost-vdpa: fix pinned page leak in vhostvdpapamap() error path

When pinuserpages() or vhostvdpamap() fails, vhostvdpapamap() is supposed to unpin the pages pinned after the last successfully mapped chunk, i.e. the range [mappfn, lastpfn]. The unpin is guarded by nchunks, but nchunks is reset to 0 every time a chunk is mapped from inside the current page list, so a failure after any such boundary leaves that pending range pinned forever. With physically scattered memory nearly every page list contains a boundary, so the leak happens on practically every failed IOTLB update.

The pending range is non-empty exactly when a page has been pinned, which lastpfn already tells us, so drop nchunks and test lastpfn.

1 / 4
Source: MITRE
First published (updated )
Severity
2.1
EPSS
0.15%
AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H

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

vhost: fix used ring index wrap in vhostaddusedninorder

vhostaddusedninorder() advances start by nheads[i] but wraps it with a single subtraction. If start + nheads[i] >= 2 vq->num, start can remain outside the ring.

With used-ring logging enabled, start > vq->num makes (vq->num - start) underflow. logwrite() then sets bits beyond the dirty-log bitmap, potentially corrupting adjacent userspace memory. This is reachable on the vhost-net TX path with VIRTIOFINORDER: doneidx can reach VHOSTNETBATCH (64), triggering the issue with a 32-entry ring.

Wrap start with a mask to keep it within the ring. VHOSTSETVRINGNUM enforces a nonzero power-of-two ring size, allowing start to be wrapped using & (vq->num - 1).

1 / 4
Source: MITRE
First published (updated )
Severity
1
EPSS
0.18%

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

virtioblk: use synchronous quiesce in virtblkfreezepriv()

blkmqrunworkfn() can call blkmqscheddispatchrequests() through blkmqrundispatchops(). The dispatcher checks QUEUEFLAGQUIESCED while the flag is clear. It can then be preempted before it gets a request. At that time, it has no queue usage reference, so blkmqfreezequeue() does not wait for it.

virtblkfreezepriv() then calls blkmqquiescequeuenowait() and blkmqunfreezequeue(). A new request can enter the queue. The old dispatcher can run again, use its old flag check, get the new request, and call virtioqueuerq(). At the same time, virtblkfreezepriv() can reset the device, delete the virtqueues, and free vblk->vqs. The old dispatcher can then use a deleted virtqueue or a NULL vblk->vqs, and the kernel can crash.

Fix this by using blkmqquiescequeue(), which waits for dispatch code that was already running. Keep the existing freeze and unfreeze order. The queue remains quiesced until virtblkrestorepriv() calls blkmqunquiescequeue().

1 / 4
Source: MITRE
First published (updated )
Severity
2.3
EPSS
0.56%
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L

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

xfs: mark the inode preallocated for pNFS write layouts past EOF

xfsfsmapblocks() marks the inode XFSDIFLAGPREALLOC only when it allocates blocks for a write layout. A write layout past EOF can also hand out allocated blocks, such as speculative preallocation. blockgc then frees them under the layout, and another file may get them.

Mark the inode whenever a write mapping ends past EOF.

1 / 4
Source: NVD
First published (updated )
Severity
1
EPSS
0.17%

blk-mq: fix out-of-bounds read in blkmqfreerqs

1 / 4
Source: Microsoft
First published (updated )
Severity
1
EPSS
0.17%

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

mm/gup: fix clearing folios in memfdpinfolios()

memfdpinfolios() pins folios obtained directly from the page cache without checking whether they are uptodate. However, shmem fallocate() can leave newly allocated folios uncleared and not uptodate. Callers such as udmabuf can then expose uninitialized memory to userspace.

Clear non-uptodate folios and mark them uptodate under the folio lock before returning them to the caller.

Fix generated by an LLM and sent by Chris Mason in private.

[ david: simplify description and comment ]

1 / 4
Source: MITRE
First published (updated )
Severity
1
EPSS
0.17%

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

mm/gup: recheck the PUD under PTL in followpudmask()

followpudmask() reads the PUD without a lock. If it is a leaf, it takes the lock and calls followhugepud(), which reads the entry again, but only tests whether it is present.

A leaf can be zapped concurrently and a page fault can fill the empty entry with a page table.

This currently only applies when device-dax makes use of PUD entries, and the fault after e.g., MADVDONTNEED would find THPs to be disabled.

That requires a sequence like

1) Fault in the PUD 2) Disable THP 3) Have GUP race against concurrent MADVDONTNEED + refault

Which is rather unlikely to happen in practice, which is why we never received a report about such a problem.

Before commit 1b1676180246 ("mm/gup: handle huge pud for followpudmask()"), we performed that check in followdevmappud() by testing for puddevmap().

Let's fix it by just structuring followpudmask() similar to followpmdmask(), minus protnone stuff that does not apply and minus FOLLSPLITPMD handling. That makes it much easier to spot any such inconsistencies.

Perform the pudbad() check early in followpmdmask() and just forward the PUD value. We can drop the pudpresent() check in followhugepud(), just like we have in followhugepmd().

Even though we are performing more changes than strictly necessary, the fix should be easy to backport.

1 / 4
Source: MITRE
First published (updated )
Severity
2
EPSS
0.23%
AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N

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

mm/madvise: fix data loss from MADVFREE on a KSM page

MADVFREE can clear the dirty flag of a singly mapped KSM folio. The folio remains in the stable tree and can gain new mappings without being dirtied again. Once marked lazyfree, reclaim can discard data that those mappings still need.

KSM always marks a folio dirty when converting it to a KSM folio in trytomergeonepage(). Marking a folio lazyfree clears PGswapbacked but leaves PGdirty unchanged. Preserving PGdirty makes reclaim restore PGswapbacked instead of discarding the folio. This also protects folios that were already lazyfree when KSM converted them.

Skip KSM folios before clearing their dirty flag, checking under the folio lock to serialize with KSM conversion.

1 / 4
Source: MITRE
First published (updated )
Severity
2
EPSS
0.16%
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

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

mm: fix unmapmappingrange() beyond 4 GiB on 32-bit

Commit 9eab0421fa94 ("mm: fix unmapmappingrange high bits shift bug") made holebegin and holelen unsigned before they are shifted, by casting them to pgofft. That is an unsigned long: on a 32-bit kernel the cast cuts off the upper half of the two lofft values, so a hole which begins at 4 GiB or beyond is taken for one in the first 4 GiB of the file.

truncatepagecache() passes the new size of the file and asks for private COWed pages to be unmapped as well. If a file of 6 GiB is truncated to 5 GiB, everything from 1 GiB on is unmapped, and what a process has written to a private mapping of the range between 1 GiB and 5 GiB is lost: it reads the contents of the file again.

Where the range has an end, the wrong range is unmapped instead of the right one. The page cache copes with that, as it unmaps every folio that it removes. The callers which only have unmapmappingrange() to get rid of user mappings do not, for example drmvmanodeunmap(), whose fake offsets reach beyond 4 GiB on 32-bit, and revokeiomem() with physical addresses of more than 32 bits.

Cast to u64 instead. Nothing changes for 64-bit kernels.

Fix generated by an LLM and sent by Josef Bacik in private.

1 / 4
Source: NVD
First published (updated )
Severity
2
EPSS
0.16%
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

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

mm/ksm: fix use of a freed anonvma at swap-in

A folio read from a swap slot previously shared by KSM can remain in the swap cache after the process that first mapped it exits. Its anonvma can then be freed, so ksmmightneedtocopy() must not dereference it to compare roots.

Doing so can result in some false-positives, resulting in the reverse mapping missing the new folio mapping, preventing migration and reclaim.

SLABTYPESAFEBYRCU allows individual anonvma objects to be reused immediately after freeing. A stale pointer can then refer to another anonvma whose root matches, even though the target VMA is not linked to that anonvma.

Move the anonymous rmap compatibility checks into folioanonrmapcompatible(). Keep the page-index check and compare the folio's anonvma pointer against the VMA's own anonvma and root first.

If neither matches, bite the bullet and walk the VMA's anonvmachain. The VMA keeps these anonvmas alive, and finding a match guarantees that reverse mapping can find the new mapping.

Lorenzo Stoakes says in a private discussion:

"This isn't quite equivalent to the existing check.

Every anonvma in an anonvmachain shares the same root, but if you split a VMA then fork both of them like this:

VMA A / \ <split> VMA B VMA C \ / root <- anonvma 1 ----^ ^---- <fork> / parent \ anonvma 2 anonvma 3 | | VMA D VMA E

VMA's D and E both get their own new anonvma's such that:

VMA D: anonvma 2 -> anonvma 1 -> root VMA E: anonvma 3 -> anonvma 1 -> root

And if you found a folio referencing anonvma 2, the existing check:

anonvma->root == vma->anon-vma->root

Would be true for VMA's B, C, D & E.

However after your change it'd be true for VMA D only, as it's the only one with anonvma 2 in its anonvmachain.

Whether or not that could actually happen in practice... 🙂 I don't know.

[...] after your change it'd be true for VMA D only, as it's the only one with anonvma 2 in its anonvmachain. [...] I would [...] say that you are making the test stricter but more correct. "

If this affects performance when KSM was never even involved, we could just track whether KSM ever merged anything and just skip these checks.

There isn't really a lot we can do otherwise: for mapped folios we might be able to use foliogetanonvma(), but for unmapped folios there really is no easy way to see if the anonvma is still valid.

Document the (confusing) lifetime requirements of folioanonvma().

1 / 4
Source: NVD
First published (updated )
Severity
1
EPSS
0.17%

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

mm/hugememory: split huge PUDs when adjusting VMA boundaries

PFN mappings such as VFIO PCI BAR mappings can use PUD leaves while allowing VMA splits at page granularity. However, vmaadjusttranshuge() only handles PMDs.

After faulting a writable PUD-sized VFIO BAR mapping, changing its first page to read-only with mprotect() makes the PMD walk treat the PUD leaf as a PMD table. Applying MADVDONTFORK to the first PMD-sized chunk leaves the PUD spanning two VMAs: the PMD-aligned boundary skips splitting.

Walk the page tables once at each adjusted boundary and split a huge PUD or PMD leaf as needed. Handle PUD leaves even when the boundary is PMD-aligned.

1 / 4
Source: MITRE
First published (updated )
Severity
2.4
EPSS
0.23%
AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:U

ALSA: caiaq: free the EP4 URB when input setup fails

1 / 4
Source: Microsoft
First published (updated )

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203