Where
AND
-Infinity
0
Severity
4

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

mm/vma: call ->maysplit() before a partial merge

A driver can use the ->maysplit() hook to forbid a VMA boundary at certain addresses.

A device-dax device is a character device that gives raw access to a range of memory through mmap(). device-dax refuses any address that is not a multiple of the device's alignment through vmops->maysplit.

vmamergeexistingrange() can move boundaries, but does not call vmops->maysplit.

If a range at the edge of a VMA gets the attributes of the adjacent VMA, the function moves only that range over to the neighbour: one VMA shrinks and the other grows. This is a partial merge, and vmamodify() tries it before any split.

Take a device-dax VMA that lies next to another VMA of the same file. The user calls mprotect() on the one page of the first VMA that touches the second VMA, and asks for the protection that the second VMA already has. The result is a partial merge. It puts the boundary inside a 1 GiB mapping, which is a single leaf entry at the PUD level.

As part of the merge, the kernel looks for a huge PMD to split at the new boundary. That code does not expect a PUD leaf:

vmamergeexistingrange() commitmerge() vmaadjusttranshuge() splithugepmdaddress() mmfindpmd() treats the PUD leaf as a pointer to a PMD table, so the "table" is the device memory that the leaf maps splithugepmd() reads a PMD that the user wrote to the device memory folioput() on the folio that this PMD names

Bad. While the code must at some point be taught to split PUD entries as well, the issue here is that we move VMA boundaries such that they are incompatible with the driver.

Fix this by calling ->maysplit() on the address that a partial merge would move the boundary to, and by abandoning the merge if the driver refuses. vmamodify() then tries the split, which fails with -EINVAL.

Factor out existing split handling into checksplit() and reuse it.

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

[ david: improve description; cleanup the code ]

First published (updated )
Severity
4
EPSS
0.20%
Use After Free

ALSA: bcd2000: Fix use-after-free of MIDI URBs on file close

1 / 4
Source: Debian
First published (updated )
Severity
4
EPSS
0.20%

ALSA: us122l: Add missing NULL check in usbstreamhwdepmmap()

1 / 4
Source: Debian
First published (updated )
Severity
4
EPSS
0.20%

ALSA: us122l: Fix NULL dereference at hwdep open and release

1 / 4
Source: Debian
First published (updated )
Severity
5.1
EPSS
0.20%
AV:P/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

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

media: go7007: only set audioenabled if go7007sndinit() succeeded

go7007registerencoder() sets go->audioenabled before calling go7007sndinit() and discards its return value. go7007sndinit() assigns go->sndcontext only on success, so a failed ALSA setup leaves audioenabled set with sndcontext still NULL. The disconnect path tests audioenabled and calls go7007sndremove(), which dereferences sndcontext unconditionally.

go7007sndinit() returns -ENODEV once its never-decremented static card counter reaches SNDRVCARDS, so SNDRVCARDS attach/detach cycles arm the next attach; no memory pressure is needed.

Set go->audioenabled only once go7007sndinit() has succeeded.

Oops: general protection fault, probably for non-canonical address ... KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] Workqueue: usbhubwq hubevent RIP: 0010:go7007sndremove (drivers/media/usb/go7007/snd-go7007.c:273) Call Trace: go7007usbdisconnect (drivers/media/usb/go7007/go7007-usb.c:1336) usbunbindinterface (drivers/usb/core/driver.c:461) deviceremove (drivers/base/dd.c:618) devicereleasedriverinternal (drivers/base/dd.c:1349) busremovedevice (drivers/base/bus.c:664) devicedel (drivers/base/core.c:3965) usbdisabledevice (drivers/usb/core/message.c:1478) usbdisconnect hubevent (drivers/usb/core/hub.c:5966) processonework (kernel/workqueue.c:3396) workerthread (kernel/workqueue.c:3560) kthread (kernel/kthread.c:436) retfromfork (arch/x86/kernel/process.c:158) retfromforkasm (arch/x86/entry/entry64.S:245) Kernel panic - not syncing: Fatal exception

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

fuse: don't BUG when the copy buffer is exhausted

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

ceph: require the dentry lease record to cover struct cephmdsreplylease

1 / 4
Source: Microsoft
First published (updated )
Severity
5.1
EPSS
0.20%
AV:P/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

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

media: em28xx: reject audio endpoint with zero packet size

em28xxaudiourbinit() divides by the audio endpoint's wMaxPacketSize without checking it, so a USB device that declares a zero-sized audio endpoint divides by zero at probe time.

Reject a zero-sized audio endpoint like a missing one; the caller already unwinds on a negative return.

Oops: divide error: 0000 [#1] SMP NOPTI Workqueue: usbhubwq hubevent RIP: 0010:em28xxaudioinit (drivers/media/usb/em28xx/em28xx-audio.c:718) Call Trace: em28xxinitextension (drivers/media/usb/em28xx/em28xx-core.c:1248) em28xxinitdev.isra.0 (drivers/media/usb/em28xx/em28xx-cards.c:3887) em28xxusbprobe (drivers/media/usb/em28xx/em28xx-cards.c:4258) usbprobeinterface (drivers/usb/core/driver.c:396) ... usbsetconfiguration (drivers/usb/core/message.c:2268) usbgenericdriverprobe (drivers/usb/core/generic.c:250) usbprobedevice (drivers/usb/core/driver.c:291) ... usbnewdevice (drivers/usb/core/hub.c:2703) hubevent (drivers/usb/core/hub.c:5961) processonework (kernel/workqueue.c:3322) workerthread (kernel/workqueue.c:3486) kthread (kernel/kthread.c:436) retfromfork (arch/x86/kernel/process.c:158) retfromforkasm (arch/x86/entry/entry64.S:245) Kernel panic - not syncing: Fatal exception

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

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

usb: xhci: Fix bounce buffer overflow

High-speed devices with out of spec 1024 byte bulk endpoints exist and are allowed by USB core, but xhci-hcd always sets packet size to 512. The exact nature of these devices isn't documented, commit fb5ee84ea72c ("USB: Accept bulk endpoints with 1024-byte maxpacket") only states that they "don't work with xHCI host controllers", whatever it means.

But somebody (or a malicious device) can try, and then the driver will allocate a 512 byte bounce buffer for this endpoint and may write up to 1024 bytes into it if particular scatter-gather URBs are used, because xhcialigntd() obtains packet size from the descriptor. Fix this.

As a side effect, TRBs will be aligned to the packet size chosen by the driver on all endpoints of all speeds. Alignment serves the xHC, not device, so this is fine. Only out of spec devices are affected anyway.

1 / 4
Source: NVD
First published (updated )
Severity
5.4
EPSS
0.16%
Double Free
AV:P/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

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

media: em28xx: fix double free in em28xxallocurbs

When allocation of usbbufs->buf[i] fails, em28xxallocurbs() explicitly frees all items within usbbufs->buf before calling em28xxuninitusbxfer(), which also frees these items, causing them to be freed twice.

BUG: KASAN: double-free in usbfreeurb.part.0 (drivers/usb/core/urb.c:25 ./include/linux/kref.h:65 drivers/usb/core/urb.c:96) Free of addr ffff88802fd37c00 by task kworker/1:2/1182 Workqueue: events requestmoduleasync Call Trace: kasanreportinvalidfree (mm/kasan/report.c:557) checkslaballocation (mm/kasan/common.c:235) kfree (./include/linux/kasan.h:199 (discriminator 1) mm/slub.c:2693 (discriminator 1) mm/slub.c:6508 (discriminator 1) mm/slub.c:6801 (discriminator 1)) usbfreeurb.part.0 (drivers/usb/core/urb.c:25 ./include/linux/kref.h:65 drivers/usb/core/urb.c:96) usbfreeurb (drivers/usb/core/urb.c:95) em28xxuninitusbxfer (drivers/media/usb/em28xx/em28xx-core.c:964) em28xxallocurbs (drivers/media/usb/em28xx/em28xx-core.c:1076) em28xxdvbinit (drivers/media/usb/em28xx/em28xx-dvb.c:1734 drivers/media/usb/em28xx/em28xx-dvb.c:1698) em28xxinitextension (drivers/media/usb/em28xx/em28xx-core.c:1248) requestmoduleasync (drivers/media/usb/em28xx/em28xx-cards.c:3685) processonework (kernel/workqueue.c:3396) workerthread (kernel/workqueue.c:3479 kernel/workqueue.c:3560) kthread (kernel/kthread.c:436) retfromfork (arch/x86/kernel/process.c:158) retfromforkasm (arch/x86/entry/entry64.S:245) Allocated by task 1182: kasansavestack (mm/kasan/common.c:57) kasansavetrack (mm/kasan/common.c:78) kasankmalloc (mm/kasan/common.c:398 mm/kasan/common.c:415) kmallocnoprof (./include/linux/kasan.h:263 mm/slub.c:5414 mm/slub.c:5439) em28xxallocurbs (./include/linux/slab.h:995 ./include/linux/slab.h:1312 drivers/media/usb/em28xx/em28xx-core.c:1081) em28xxdvbinit (drivers/media/usb/em28xx/em28xx-dvb.c:1734 drivers/media/usb/em28xx/em28xx-dvb.c:1698) em28xxinitextension (drivers/media/usb/em28xx/em28xx-core.c:1248) requestmoduleasync (drivers/media/usb/em28xx/em28xx-cards.c:3685) processonework (kernel/workqueue.c:3396) workerthread (kernel/workqueue.c:3479 kernel/workqueue.c:3560) kthread (kernel/kthread.c:436) retfromfork (arch/x86/kernel/process.c:158) retfromforkasm (arch/x86/entry/entry64.S:245) Freed by task 1182: kasansavestack (mm/kasan/common.c:57) kasansavetrack (mm/kasan/common.c:78) kasansavefreeinfo (mm/kasan/generic.c:584) kasanslabfree (mm/kasan/common.c:253 mm/kasan/common.c:285) kfree (./include/linux/kasan.h:235 mm/slub.c:2748 mm/slub.c:6508 mm/slub.c:6801) em28xxallocurbs (drivers/media/usb/em28xx/em28xx-core.c:1084) em28xxdvbinit (drivers/media/usb/em28xx/em28xx-dvb.c:1734 drivers/media/usb/em28xx/em28xx-dvb.c:1698) em28xxinitextension (drivers/media/usb/em28xx/em28xx-core.c:1248) requestmoduleasync (drivers/media/usb/em28xx/em28xx-cards.c:3685) processonework (kernel/workqueue.c:3396) workerthread (kernel/workqueue.c:3479 kernel/workqueue.c:3560) kthread (kernel/kthread.c:436) retfromfork (arch/x86/kernel/process.c:158) retfromforkasm (arch/x86/entry/entry64.S:245)

Remove the explicit cleanup loop and let em28xxuninitusbxfer() handle the cleanup.

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

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

netfilter: nftfwdnetdev: use recursion counter in neigh egress path

nftfwdneigh can be used in egress chains (NFNETDEVEGRESS). When the forwarding rule targets the same device or two devices forward to each other, neighxmit() triggers devqueuexmit() which re-enters nfhookegress(), causing infinite recursion and stack overflow.

Move the nfgetnfdupskbrecursion() accessor and NFRECURSIONLIMIT to the shared header nfdupnetdev.h as a static inline, so that nftfwdnetdev can use the recursion counter directly without exported function call overhead. Guard neighxmit() with the same recursion limit already used in nfdonetdevegress().

[ Updated to cache the nfgetnfdupskbrecursion pointer. --pablo ]

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

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

net: ipv4: add zero check for sndcwndclamp

When RTAXCWND is locked, user is able to pass 0 into it. This could lead to writing 0 to tp->sndcwnd, leading to a division by zero error.

Oops: divide error: 0000 [#1] SMP KASAN NOPTI Call Trace: <IRQ> tcprenocongavoid (net/ipv4/tcpcong.c:510 (discriminator 1)) tcpack (net/ipv4/tcpinput.c:3517 net/ipv4/tcpinput.c:3873 net/ipv4/tcpinput.c:4440) tcprcvestablished (net/ipv4/tcpinput.c:6685) tcpv4dorcv (net/ipv4/tcpipv4.c:1854) tcpv4rcv (net/ipv4/tcpipv4.c:2248) ipprotocoldeliverrcu (net/ipv4/ipinput.c:207 (discriminator 1)) iplocaldeliverfinish (net/ipv4/ipinput.c:241 (discriminator 1)) iplocaldeliver (./include/linux/netfilter.h:325 ./include/linux/netfilter.h:319 net/ipv4/ipinput.c:262) iprcv (./include/net/dst.h:481 (discriminator 6) net/ipv4/ipinput.c:492 (discriminator 6) ./include/linux/netfilter.h:325 (discriminator 6) ./include/li) netifreceiveskbonecore (net/core/dev.c:6297 (discriminator 4)) netifreceiveskb (net/core/dev.c:6410) processbacklog (net/core/dev.c:6761) napipoll.constprop.0 (net/core/dev.c:7830) netrxaction (net/core/dev.c:7893 net/core/dev.c:8050) handlesoftirqs (kernel/softirq.c:645) irqexitrcu (kernel/softirq.c:679 kernel/softirq.c:519 kernel/softirq.c:758) irqexitrcu (kernel/softirq.c:775) sysvecapictimerinterrupt (arch/x86/kernel/apic/apic.c:1062 (discriminator 35) arch/x86/kernel/apic/apic.c:1062 (discriminator 35)) RIP: 0010:tcpcongavoidai (net/ipv4/tcpcong.c:482)

Fix by checking if user pass in zero as parameter and if lock is present.

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

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

libceph: bound moncommand ack decode to front len

handlecommandack() bounds the decode with msg->frontalloclen, the size of the reply buffer, instead of msg->front.iovlen, the number of bytes the monitor sent. monallocmsg() routes every CEPHMSGMONCOMMANDACK to getgenericreply(), which returns the preallocated ->reply of whichever generic request carries the same tid, so the buffer keeps its fixed size however short the reply is. An ack with hdr.frontlen below sizeof(struct cephmonrequestheader) + sizeof(u32), including 0, still passes cephdecodeneed(), and cephdecode32() returns four bytes that were never received: uninitialized slab memory, stale bytes of an earlier message, or bytes the peer planted by sending a reply that lands in the same buffer and is then rejected. The read stays within the allocation, so KASAN does not flag it.

req->result reaches userspace through cephmoncdostatfs(), cephmoncgetversion() and cephmoncblocklistadd(); rbd hands it back from write() on /sys/bus/rbd/addsinglemajor, and rbdgetclient() passes it to ERRPTR() unchecked, which faults:

rbd: failed to get latest osdmap: -186318427 BUG: unable to handle page fault for address: fffffbfffe9ca034 Oops: Oops: 0000 [#1] SMP KASAN NOPTI RIP: 0010:dorbdadd (drivers/block/rbd.c:7105) Call Trace: ... kernfsfopwriteiter (fs/kernfs/file.c:345) vfswrite (fs/readwrite.c:595 fs/readwrite.c:687) ksyswrite (fs/readwrite.c:739) dosyscall64 (arch/x86/entry/syscall64.c:61 arch/x86/entry/syscall64.c:84) entrySYSCALL64afterhwframe (arch/x86/entry/entry64.S:121) Kernel panic - not syncing: Fatal exception

Use msg->front.iovlen, matching handlesubscribeack(), handlestatfsreply(), handlegetversionreply() and handleauthreply(). A well-formed ack has front.iovlen >= 22 and is unaffected; a short one takes the existing bad: path. This applies commit d3c32939fa0e ("libceph: bound getversion reply decode to front len") to the last decode-side use of frontalloclen in this file.

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

fbdev: udlfb: don't rebuild the mode list while the framebuffer is in use

1 / 4
Source: Microsoft
First published (updated )
Severity
4
EPSS
0.20%
Null Pointer Dereference

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

speakup: Fix NULL pointer dereference on VT switch + selection

When selecting/pasting very quickly after VT switch, the tty is not set yet, leading to a NULL dereference. We can just abort the operation.

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

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

ksmbd: fix overflow in dacloffset bounds check in buildsecdesc()

When the large dacloffset is provided, dacloffset + sizeof(struct smbacl) overflows on 32-bit builds and the check is passed, Which makes le16tocpu(ppdaclptr->size) read out-of-bounds. This only happens for dacloffset in range [0xFFFFFFF8, 0xFFFFFFFF]. So the oob read is max 8 bytes preceding the allocated ppntsd.

unsigned int dacloffset = le32tocpu(ppntsd->dacloffset); int ppdaclsize, ntaclsize = ppntsdsize - dacloffset;

if (!dacloffset || (dacloffset + sizeof(struct smbacl) > ppntsdsize)) goto out;

Commit beff0bc9d69b ("ksmbd: fix overflow in dacloffset bounds check") fixes similar checks in other functions. But leaves this one out, because it is only valid for 32-bit builds.

Reproduced on 32-bit ARM with KASAN, by a client sending SMB2 SETINFO(SEC) with dacloffset=0xfffffff8, then QUERYINFO(SEC) on the same file:

BUG: KASAN: slab-out-of-bounds in buildsecdesc (fs/smb/server/smbacl.c:1105) Read of size 2 at addr c2a273fa by task kworker/1:1/35 CPU: 1 UID: 0 PID: 35 Comm: kworker/1:1 Not tainted 7.3.0-rc2+ #5 Workqueue: ksmbd-io handleksmbdwork Call trace: kasancheckrange from buildsecdesc (fs/smb/server/smbacl.c:1105) buildsecdesc from smb2queryinfo (fs/smb/server/smb2pdu.c:7676) smb2queryinfo from handleksmbdwork (fs/smb/server/server.c:160) handleksmbdwork from processonework (kernel/workqueue.c:3401) processonework from workerthread (kernel/workqueue.c:3473) workerthread from kthread (kernel/kthread.c:436)

Add overflow check.

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

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

netfilter: conntrack: tcp: use UNACK timeout for non-closing RST packets

Commit be0502a3f2e9 ("netfilter: conntrack: tcp: only close if RST matches exact sequence") keeps an established conntrack entry in ESTABLISHED when an in-window RST does not match the expected sequence number exactly, so the endpoint can validate the RST with a challenge ACK.

The timeout selection nevertheless uses the CLOSE timeout for every RST packet. The bug is that timeout selection is based on the packet type, not on the state transition result: even when RST validation keeps newstate in ESTABLISHED, the timeout is still forced to TCPCONNTRACKCLOSE.

Linux TCP independently rate limits challenge ACKs per socket. A second non-exact RST can therefore arrive after the first challenge ACK has restored the timeout but before the rate limit expires. The second RST lowers the timeout to 10 seconds again while the endpoint suppresses the second challenge ACK, allowing the conntrack entry to expire while both TCP endpoints remain established.

Using the ESTABLISHED timeout for such RSTs would avoid this short expiration window, but it could also retain stale entries for the five-day default because conntrack cannot reliably match the endpoint's exact TCP state.

Use the UNACK timeout for RST packets that leave the conntrack entry in TCPCONNTRACKESTABLISHED. Exact-match RSTs and accepted RST packet trains still fall through to timeouts[newstate], which preserves the CLOSE timeout when conntrack accepts the RST as closing the flow.

This avoids the aggressive 10-second expiration window for non-exact RSTs while preserving the short timeout for RSTs that conntrack accepts as closing the flow.

First published (updated )
Severity
4
Use After Free

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

tracing: Save the event file instead of the compatible histogram

createfieldvarhist() creates a histogram on the matched event to supply a field variable, and records it on the target so it can be torn down later:

histdata = findcompatiblehist(targethistdata, file); ... / Save the compatible histogram information / varhist->histdata = histdata;

histdata is not the histogram it creates. It is one that was already there, whose keys the new one copies. The saved pointer has a single user, unregisterfieldvarhists(), which runs when the target is removed:

file = histdata->fieldvarhists[i]->histdata->eventfile;

findcompatiblehist() matches on keys alone, so it can pick one with no variables of its own. checkvarrefs() then returns false and the user can remove it while the target still points at it:

BUG: KASAN: slab-use-after-free in eventhisttriggerfree+0x2b2/0x320 Read of size 8 at addr ffff8880093b90e0 by task init/1

Freed by task 1: kfree+0x154/0x420 eventhisttriggerfree+0x1d5/0x320 eventhisttriggerparse+0x35f3/0x69e0 triggerprocessregex+0x1a6/0x250

Save the event file instead. It is all the dereference ever wanted, and it does not go away when the user removes a trigger.

First published (updated )
Severity
4
Use After Free

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

scsi: st: Fix use-after-free race between stremove() and stopen()

stremove() drops the probe reference on the scsitape with krefput() and only afterwards removes its index from stindexidr. If that was the last reference, scsitaperelease() frees the structure while it is still published in the idr.

scsitapeget(), called from stopen(), looks up the tape in stindexidr and takes a reference under strefmutex and stindexlock. removecdevs() does not wait for opens that are already past chrdevopen(), so an open that is blocked on strefmutex while stremove() holds it can take the mutex as soon as stremove() drops it, find the freed tpnt in the idr and call krefget() on it:

BUG: KASAN: slab-use-after-free in stopen Write of size 4 ... stopen (drivers/scsi/st.c:254 drivers/scsi/st.c:1291) chrdevopen ... Freed by task ...: kfree stremove (drivers/scsi/st.c:4512)

Remove the index from the idr before dropping the reference, all under strefmutex. A concurrent scsitapeget() now either runs first and holds a valid reference that keeps the tape alive, or runs afterwards and finds nothing, so stopen() fails with -ENXIO.

This restores the ordering stremove() had before the conversion to stindexidr, where the tape was unpublished from scsitapes[] before the final krefput().

First published (updated )
Severity
6.8
EPSS
0.18%
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L

drm/amdgpu: free the userptr ranges when a CS fails after parserbos

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

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

ksmbd: fill in FileSysIdentifier in FSPOSIXINFORMATION

smb2getinfofilesystem() reports 56 bytes for FSPOSIXINFORMATION, that is the whole of FILESYSTEMPOSIXINFO, but never assigns FileSysIdentifier. Those eight bytes go to the client as they are found in the response buffer.

The buffer is zeroed on allocation, so a standalone request leaks nothing. A compound request can leak: the offset of the next response is advanced by the length pinned for the previous one, so a reply that was written into the buffer and then dropped in favour of the short error response of smb2seterrrsp() stays there, and the next reply is laid over it with only the header cleared.

Report the file system id statfs() returned, which is what the field is for. FileSysIdentifier is le64 and ffsid is a pair of ints, so assemble the value first, val[0] as the low half, and convert it on the way out.

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

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

ksmbd: initialize FileSystemControlFlags in FSCONTROLINFORMATION

smb2getinfofilesystem() reports 48 bytes for FSCONTROLINFORMATION, that is the whole of struct smb2fscontrolinfo, but never assigns FileSystemControlFlags. Those four bytes go to the client as they are found in the response buffer.

The buffer is zeroed on allocation, so a standalone request leaks nothing. A compound request can leak: the offset of the next response is advanced by the length pinned for the previous one, so a reply that was written into the buffer and then dropped in favour of the short error response of smb2seterrrsp() stays there, and the next reply is laid over it with only the header cleared.

ksmbd does not implement quota tracking, so report no control flags.

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

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

net/sched: clsflower: validate mask pointer after nlanext()

flsetencopt() iterates the key's nested tunnel-option attributes with nlaforeachattr() while advancing a single mask pointer via nlanext() at the bottom of each loop, so the mask cursor is driven by the number of key attributes rather than by the mask's own attributes. The nlaok() added by commit c96adff956191 ("clsflower: call nlaok() before nlanext()") only validates the mask pointer that was just consumed; the pointer produced by nlanext() is used by the next iteration (flsetgeneveopt() and siblings) without any validation.

The mask's nested attributes are validated with NLVALIDATELIBERAL, which merely warns on trailing bytes that do not form a complete attribute. A mask carrying one valid attribute plus 1-3 residue bytes (or a non-aligned attribute length making mskdepth negative) therefore reaches the next iteration with mskdepth != 0, so neither the !mskdepth check in flsetencopt() nor the !depth check in the per-type helpers fires. nlatype() then reads past the mask payload and nlaparsenesteddeprecated() iterates with an nlalen taken from those bytes, reading well beyond the mask attribute (KASAN: slab-out-of-bounds read in nlavalidateparse from flchange()).

Validate the advanced mask pointer as well: when the mask is not legitimately exhausted (mskdepth != 0) and the new pointer fails nlaok(), reject the filter with -EINVAL. An exactly exhausted mask still skips the check, preserving exact-match behaviour for the remaining key attributes.

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

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

schedext: Fix stall when a task enqueued with SCXENQLAST lands back on its CPU's local DSQ

With SCXOPSENQLAST, the last runnable task on a CPU is passed to ops.enqueue() instead of being kept running. Exiting tasks without SCXOPSENQEXITING, migration disabled tasks without SCXOPSENQMIGRATIONDISABLED and tasks on an offline rq skip ops.enqueue() and go straight to the local DSQ. This happens in putprevtaskscx() after the pick has settled on idle, so nothing reschedules the CPU, which idles with the task queued until an unrelated wakeup lands on it or the watchdog fires.

scxmitosis, which sets SCXOPSENQLAST without SCXOPSENQEXITING, hit this during mass cgroup teardown: exiting tasks stuck in exitmmap() for over 40 seconds.

A task put on the local DSQ runs, as anywhere else. If the SCXENQLAST enqueue left the task on this CPU's local DSQ, set needresched on the task being switched in, as proxyreschedidle() does. reschedcurr() would flag the task being put instead, and schedule() clears that right after the pick.

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

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

smb: client: fix data corruption with concurrent writes and OTRUNC

cifsdotruncate() flushes dirty pages with filemapwriteandwait() and truncates the file on the server, but in the old code both operations ran without holding irwsem or invalidatelock. A concurrent buffered write via netfsperformwrite() -- which only needs irwsem shared -- could dirty new pages after the flush but before the local truncation, and those pages would be silently discarded by cifssetsize() -> truncatepagecache().

Fix by acquiring inodelock (exclusive irwsem) and filemapinvalidatelock at the top of cifsdotruncate(), so the entire flush-truncate-resize sequence is atomic with respect to:

- buffered writes (blocked by exclusive irwsem, since netfsstartiowrite takes irwsem shared), - read page faults (blocked by exclusive invalidatelock, since filemapfault takes it shared), - writeback collection (blocked by netfswbbegin/netfswbend around the server truncate and local resize, since netfswritepages also acquires the wb lock).

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

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

ntfs: move attribute payload before shrinking its record

ntfsnewattrflags() resizes the non-resident attribute record before moving its name and mapping pairs to their shorter-header offsets when compression or sparse state is cleared.

Shrinking the record first moves the following attribute over the tail of the old record. The subsequent memmove() therefore copies bytes from that following attribute instead of the old mapping pairs. Re-enabling compression on an empty file persists those bytes as a malformed mapping pairs array, which ntfsck reports as a missing or invalid run length.

Move the payload before shrinking the record, while retaining the existing resize-before-move ordering when growing it.

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

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

ksmbd: zero the FSOBJECTIDINFORMATION buffer before filling it in

smb2getinfofilesystem() reports 64 bytes for FSOBJECTIDINFORMATION, that is the whole of struct objectidinfo, but writes only 46 of them:

- objid[] is 16 bytes, and when the volume UUID is not available only sizeof(stfs.ffsid) (8) bytes are copied into it; - extendedinfo.versionstring[] is STRINGLENGTH (28) bytes, and only strlen("1.1.0") (5) bytes are copied into it.

The response buffer is zeroed on allocation (kvzalloc() in smb2allocaterspbuf()), so for a standalone request the remaining 31 bytes are zero. In a compound request they need not be. The offset of the next response is advanced by the length pinned for the previous one, so if a preceding command wrote its reply into the buffer and then failed, smb2seterrrsp() pins only the short error response and the next reply lands inside the area that has already been written. Only the header is cleared there:

memset((char )rsphdr, 0, sizeof(struct smb2hdr) + 2);

The client then receives up to 31 bytes of a response it was not meant to see, including one that failed with an access denied error.

Clear the structure before filling it in. As a side effect versionstring is now NUL terminated.

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

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

xfs: fix capability check in xfs

An user reported a bug where he managed to evade group's quota by changing a file's gid to a different group id the same user belonged to, even though quotas were enforced on both gids and the file's size was big enough to exceed the quota's hardlimit.

Commit eba0549bc7d1 replaced a capable() call by a hascapabilitynoaudit() to prevent unnecessary selinux audit messages. Turns out that both calls have slightly different semantics even though their documentation seems similar. Where in a nutshell:

capable() - Tests the task's effective credentials hasnscapabilitynoaudit() - Tests the task's real credentials

This most of the time has no practical difference but in some cases like changing attrs (specifically group id in this case) through a NFS client this will allow the quota code to use XFSQMOPTFORCERES, effectively bypassing quota accounting checks.

Using instead nscapablenoaudit() should fix this issue and prevent selinux audit messages.

This also fix the remaining calls to hascapabilitynoaudit()

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

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

xfs: don't hold buffer locks across sync transaction commit in xfssyncsbbuf

xfssyncsbbuf() holds sb/rtsb buffer locks across a synchronous xfstranscommit(), which flushes the CIL push workqueue internally. If shutdown occurs during the CIL push, xfsbufitemunpin() needs to lock these buffers to fail them, causing a deadlock:

setlabel: holds buf lock -> flushworkqueue(xfs-cil) CIL push worker: xfsbufitemunpin -> xfsbuflock(same buf)

Remove the xfstransbhold() calls so that commit releases the buffer locks normally. After the sync commit, re-acquire the buffers via mp->msbbp / mp->mrtsbbp for the on-disk writeback.

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

cifs: don't update isize in cifsdotruncate without a cached handle

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