Where
AND
-Infinity
0

Vendor Risk Score

See how linux compares to other vendors in security performance

View Risk Score →

Software

Severity
1

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

ntfs: sync the volume dirty bit with the recorded error state

The runtime metadata-corruption paths in fs/ntfs only record the in-memory NVolErrors() flag; whether VOLUMEISDIRTY ever reaches disk depends on ntfssetvolumeflags() being called by some other path, which for most error sites never happens. A volume can therefore unmount with a clean on-disk flag despite recorded corruption, and chkdsk will not run on the next mount.

Persisting the dirty bit from the error paths themselves does not work: they run under a wide variety of ntfs locks, and the dirty-bit write takes the $Volume mreclock and maps the $Volume mft record, which on an $MFT page-cache miss takes the $MFT runlist lock for writing. That is enough to self-deadlock or form ABBA cycles from several of them: the $MFT extend undo paths hold the $MFT runlist lock and then take vol->lcnbmplock inside ntfsclusterfree(); the cluster allocation and free rollback paths hold vol->lcnbmplock; and the whole mft record allocation tree is reachable from ntfswritevolumelabel()'s attribute-list maintenance while it holds the $Volume mreclock itself.

Instead, make the persistence a property of the sync paths, which run without ntfs locks held. The new ntfssyncvolumedirtystate() sets VOLUMEISDIRTY when NVolErrors() is recorded and clears it otherwise, evaluating the error flag under the $Volume mreclock. It is called from ntfssyncfs(), from the remount-to-read-only path of ntfsreconfigure(), and from ntfsputsuper(), which previously evaluated NVolErrors() outside the lock before clearing the dirty bit unconditionally, and which now also persists the dirty bit for volumes with recorded errors so they unmount with chkdsk scheduled. The ntfsclearvolumeflags() wrapper, whose last callers this patch replaces, has no users left and is removed.

The guarantee this provides is eventual, not instantaneous: the error paths record NVolErrors() with a lock-free setbit(), so a persistence point that evaluates the flag just before an error is recorded can still leave the on-disk bit clean until the next one. This is sound because NVolErrors() is sticky for the lifetime of the mount and every persistence point re-derives the on-disk bit from it; the last one, ntfsputsuper(), runs after evictinodes() on a quiesced filesystem, so a volume that is read-write at unmount time cannot unmount clean. A volume that is already read-only when the error is recorded (errors=remount-ro flips the superblock on the first error, as does an earlier remount-ro) has no persistence point left and keeps whatever on-disk bit it had; that behaviour is unchanged. The residual window is a crash between the error and the next persistence point.

The persistence paths never write a hibernated volume: resuming Windows from a modified image corrupts it. Record the mount-time hibernation verdict in the new NVHibernated volume flag and make ntfssyncvolumedirtystate() a no-op while it is set, so the dirty bit is left exactly as it is on disk and only the in-memory error state is kept. Without this, an rw mount of a hibernated volume with the default errors=continue would gain a filesystem-internal write on the first sync, remount or unmount. Other writes to such a mount, like the mount-time logfile emptying, are pre-existing and unchanged.

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

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

ntfs: fail the mount when $MFT needs its own extent records

Mounting a crafted image hangs the mount process forever, unkillable at 0% CPU. Only the hung-task detector reports it:

INFO: task mount:74 blocked in I/O wait for more than 30 seconds.

foliowaitbitcommon <- waits forever filemapreadfolio mapmftrecordfolio mapmftrecord ntfsmaprunlistnolock ntfsattrvcntorl ntfsreadiomapbegin iomapreadfolio ntfsreadfolio <- already holds that folio's lock ntfsreadinodemount ntfsfillsuper

ntfsreadinodemount() assembles $MFT's runlist one $DATA extent at a time, hoping, as its comment says, that it never needs a part of $MFT it has not decoded yet. If $MFT's attribute list puts one of its attributes or later $DATA extents in an extent record outside the runlist decoded so far, reading that record re-enters ntfsmaprunlistnolock() for $MFT. Depending on the layout, that waits on the folio lock it already holds, as above, blocks on $MFT's runlist lock, or dereferences NULL in mapextentmftrecord().

Mark the volume for the whole $DATA enumeration and have ntfsmaprunlistnolock() refuse $MFT with -EIO while the mark is set. The enumeration decodes each extent itself with ntfsmappingpairsdecompress(), so it does not need that path.

A validly placed record can trip the check too. The driver puts an extent record for $MFT's own mapping pairs before the first vcn it describes, but with clusters smaller than a page, the folio holding it can still run past the decoded runlist. An unpatched kernel hangs on that layout as well; with the check the mount fails. The check then refuses only the folio's tail, so this patch needs "ntfs: do not map an unmappable runlist fragment as a hole": without it the tail is zero-filled and the mount serves an all-zero mft record. The mount now fails instead of hanging:

ntfs: (device vda): ntfsmaprunlistnolock(): $MFT needs its own extent records to describe itself; cannot mount.

Tested under qemu with KASAN, PROVELOCKING and the hung-task detector on ntfs-next, with and without the whole series: six crafted images that hang or crash an unpatched kernel fail to mount with the series, and nine images that mount without it still mount, three of them with the same file listing and contents, among them a volume written by ntfs-3g whose $MFT has its $DATA in three extent records.

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

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

ntfs: fail remount on sync errors and keep the dirty bit on SBFORCE

ntfsreconfigure() currently ignores syncfilesystem() errors, allowing a regular read-only remount to succeed even when dirty data was not synced. Check the error and fail regular remounts, leaving the superblock read-write so ntfsputsuper() can retry at unmount.

SBFORCE does not wait for writers already in progress, so it must not clear the on-disk dirty bit. Warn and continue on sync errors for SBFORCE. A forced remount updates the dirty state only when errors have been recorded, and never clears the dirty bit. Skip the commit if that state update fails, since the in-memory flags may be inconsistent.

1 / 4
Source: MITRE
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

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

ntfs: set the volume dirty bit unconditionally on metadata changes

The callers in file.c and namei.c skip ntfssetvolumeflags() when the in-memory volflags already show VOLUMEISDIRTY, but that check runs without any lock: if it observes the bit set and ntfssyncfs() clears it under the mreclock before the caller's metadata update completes, the set is skipped and the volume can end up clean on disk despite the modification, so chkdsk will not run on the next mount.

Drop the caller-side checks and call ntfssetvolumeflags() unconditionally: ntfswritevolumeflags() already skips the write under the mreclock when the combined value is unchanged. That unconditional call costs one mreclock acquisition per metadata operation even in the already-dirty steady state; it cannot be avoided, because deciding to skip the call without the lock is itself what allows a concurrent ntfssyncfs() clear to lose the set.

The IOCBNOWAIT path in ntfsfilewriteiter() goes through the same sleeping call: a RWFNOWAIT write can block in the marking, as it already could before this change whenever the volume appeared clean. Giving that path a non-blocking variant is left as follow-up work. The callers keep the pre-existing behavior of proceeding when the marking fails, so the dirty bit remains best-effort.

This closes the variant where the set is skipped outright. A clear for a concurrent, error-free sync can still land between the set and the end of the metadata operation; that mark-at-start lifecycle is pre-existing and is not changed by this patch.

1 / 4
Source: MITRE
First published (updated )
Severity
2
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:

ntfs: wait for attribute folio writeback before update

ntfsinodeattrpwrite() locks an attribute folio before copying a new attribute image into it, but taking the folio lock does not wait for an already-running writeback BIO to complete. The writeback path can unlock the folio while PGwriteback remains set and the BIO still references the folio memory.

1 / 3
Source: MITRE
First published (updated )
Severity
2
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:

ntfs: include the final partial cluster in sync writes

ntfsattrlistrepack() synchronously writes the replacement attribute list before updating its mapping pairs and freeing the old run. With 512-byte clusters, a 544-byte list submits a 512-byte bio, but the write returns 544 and repack accepts it as complete. If the later buffered update does not reach disk, the replacement list lacks its final 32 bytes.

ntfsinodenonresidentattrpwrite() converts attrlen to clusters with ntfsbytestocluster(), which rounds down. Before repack, its synchronous callers used either cluster-aligned lengths or lengths smaller than one cluster, where maxt() selects one.

Round attrlen up so repack writes the final partial cluster before publishing the new mapping pairs.

1 / 3
Source: MITRE
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

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

ntfs: fix volume flag update races

ntfssetvolumeflags() and ntfsclearvolumeflags() both read vol->volflags outside any lock to compute the new value before handing it to ntfswritevolumeflags(), which only takes ni->mreclock around the actual write. The read-modify-write is therefore not atomic, and two concurrent callers can lose an update: ntfssyncfs() may derive a "clean" value from vol->volflags while a writer concurrently records an error and sets VOLUMEISDIRTY; the locked write then silently overwrites the freshly-set dirty bit. The on-disk volume looks clean despite the recorded errors, so chkdsk will not run on the next mount and corrupted metadata can persist.

Fix by moving the read-modify-write inside the mreclock: pass the bits to set and to clear separately, and combine them with the current flag state under the lock inside ntfswritevolumeflags(). The set/clear helpers pass only the bits to modify, not the complete flag state. The bit manipulation is done on CPU-endian values, and the result is converted back to little-endian before storing it. The wrappers keep their signatures so callers are unchanged.

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

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

l2tp: snapshot sequencing state when building transmit headers

Updates to sendseq from netlink, PPP setsockopt and receive-side negotiation race with packet transmission. The header length is updated separately, while transmit reads both fields repeatedly without synchronization.

For example, transmit can push a ten-byte L2TPv2 header, then a concurrent writer clears sendseq before the header builder reads it. The builder writes only six bytes, leaving four bytes of uninitialized skb headroom in the outgoing packet. The reverse mismatch overwrites the beginning of the payload. A later hdrlen read can also make the UDP length disagree with the skb length.

KCSAN reported:

BUG: KCSAN: data-race in l2tpsessionsetheaderlen / l2tpxmitskb

write to 0xffff888100d0944a of 2 bytes by task 116 on cpu 1: l2tpsessionsetheaderlen+0x81/0xc0 l2tpnlcmdsessionmodify+0x122/0x2c0 genlfamilyrcvmsgdoit+0x170/0x1d0

read to 0xffff888100d0944a of 2 bytes by task 115 on cpu 0: l2tpxmitskb+0x9c/0xc80 pppol2tpsendmsg+0x21c/0x2a0 syssendto+0x28c/0x2a0

The bug can lead to leak kernel base address for KASLR bypass, the corresponding reproducer can be provided per request.

Initialize hdrlen to the maximum header size and leave it unchanged when sequencing is toggled. Snapshot sendseq once per packet and use that snapshot for the actual header length and header construction, including the sequence flag. Use the same length for headroom, the header push and the UDP length. PPP callers can safely reserve the maximum size; L2TPv3 header sizes do not depend on sequencing.

Make sendseq a separate bool so READONCE() and WRITEONCE() can be used without sharing a bitfield storage unit with other configuration flags. Preserve the netlink attribute's existing low-bit truncation.

1 / 3
Source: MITRE
First published (updated )
Severity
2
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:

alpha: invalidate the local context in flushtlbpage()

When the target mm is not the calling CPU's activemm, flushtlbpage() does nothing locally, and smpcallfunction() reaches only the other CPUs. This CPU may still hold translations for the mm and can later reuse the old ASN together with them.

Add the missing else branch. flushtlbother() clears mm->context[cpu] so a fresh ASN is taken at the next switch. Add this before changing the current->activemm test to current->mm: that change will also send lazy callers here, so their local invalidate must already be in place.

The uniprocessor implementations of flushtlbmm() and flushicacheuserpage() in asm/tlbflush.h and asm/cacheflush.h already contain exactly this branch.

1 / 3
Source: NVD
First published (updated )
Severity
1

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

netdevsim: reject clsbpf programs bound to another device

The issue: nsimbpfsetuptcblockcb() installs any device-bound SCHEDCLS program without checking that its offload device matches the target netdev. The core clsbpf attach path rejects a mismatching program, but a netdev that joins a shared block later is replayed the stored filter by clsbpfreoffload() before it is inserted into block->ports, so the attach-time check cannot see it. The driver callback is the authoritative per-device acceptance boundary and must enforce the match itself, as nfp already does in nfpnetbpfoffload().

Without the check, replaying a device-bound program onto a different bpfoffloaddev installs it into that device's netdevsim state, which trips the WARN in nsimbpfuninit() (ns->bpfoffloaded set on a foreign device) and can dereference a NULL prog->aux->offload in nsimprogsetloaded().

The Fix: Reject a device-bound program whose offload device does not match the target netdev, with -EINVAL and an extack so the rejected replay is not silent. The check is intentionally narrower than nfp's: it fires only for a dev-bound program, so nsim's bpftcnonboundaccept mode (which admits an unbound program onto the device) is unaffected. Teardown is never blocked: the guard is on the program being installed and an unbind passes clsbpf.prog = NULL.

Conditions to recreate the bug: - CONFIGNETDEVSIM=y, CONFIGNETCLSBPF=y - load and pin a dev-bound SCHEDCLS program for netdevsim device B - install the program on a shared block owned by B - add an independently backed netdevsim device C to that block; the bind replays the filter to C's callback, and C's ports/0/bpfoffloadedid takes the B-bound program id.

The reported Sashiko review is at https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260809094418.901607-1-jhs@mojatatu.com

1 / 3
Source: MITRE
First published (updated )
Severity
2.4
AV:L/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N

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

cgroup: fix cgroup.kill for exited thread group leader

cgroup.kill does not work in case a process' thread group leader is gone but other threads are still running. This is because cgroupkill() only walks the thread group leaders and sends SIGKILL to each of them with sendsig(), which uses PIDTYPEPID:

1. The exited leader is still listed by CSSTASKITERPROCS as long as the process has live threads, but a signal directed at a single exiting task never takes effect: completesignal() does not look for another thread to deliver it to, and sendsignallocked() now drops it altogether. The process keeps running.

2. The live threads of such a process can be migrated to another cgroup by writing any of their IDs to cgroup.procs, while the exited leader stays behind. The destination cgroup has no thread group leader to iterate, so writing to its cgroup.kill does nothing at all.

In both cases the cgroup stays populated after cgroup.kill, and a process inside a container can use this to survive the container being killed. This also works with a private PID namespace when the init of the container is the process, as the PID namespace is not torn down while init has live threads.

Case 1 can be fixed by using dosendsiginfo(..., PIDTYPETGID) instead of sendsig(), so that the signal is taken by a live thread even if the task found by the iterator is exiting. Note it was pointed out by Eric in [1] while reviewing v2 of cgroup.kill patchset, and v3 was meant to switch to it, but the change was only made in cgrouppostfork(), leaving cgroupkill() with sendsig().

Case 2 can only be fixed by iterating over all threads, so this is what the fix also does. Once a thread group is being killed, its other threads are skipped since they already have a fatal signal pending.

I ran some performance checks and the added cost is ~60 ns per every thread on my laptop (and less than a millisecond for 10K threads), which seems low. The time to "populated 0" seems unchanged.

The issue was found in crun by Anthropic's OSS Scanner, and crun is getting a workaround for it [2] (which does what we needed to do before cgroup.kill was added).

[1] https://lore.kernel.org/all/m1v97x6niq.fsf@fess.ebiederm.org/ [2] https://github.com/containers/crun/pull/2351

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

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

alpha: fix the local TLB invalidate in flushtlbpage()

flushtlbpage() invalidates the calling CPU itself before asking the others, and gates that on current->activemm. For a non-executable vma that means a targeted tbi(2, addr), which acts on the context currently loaded and is only guaranteed to invalidate the intended translations when the target mm's context is the loaded one. A lazy activemm does not establish that, so as in ipiflushtlbpage() the target mm's stale translations can survive, and nothing forces the old ASN to be retired afterwards.

Test current->mm instead. A lazy caller then takes the flushtlbother() branch added by the previous patch, retiring its local context. Adding that branch first preserves the local invalidate at every step, including on EV7 where a targeted tbi() against a foreign ASN appeared to work.

Which callers reach here with a foreign mm depends on the configuration. foliomkclean(), from the writeback flusher kworker that has no mm of its own, accounted for about half the calls during writeback of a shared mapping and none at all on anonymous memory. Those counts were measured with CONFIGCOMPACTION=n: with COMPACTION=y, asm/pgtable.h overrides ptepclearflush() to call migrateflushtlbpage(), which rendezvouses with every CPU and handles the context itself, so foliomkclean() does not reach this function.

1 / 3
Source: NVD
First published (updated )
Severity
1

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

Input: always accept EVSYN in inputevent()

Commit 0cd587735205 ("Input: preallocate memory to hold event values") moved allocation of dev->vals into inputallocatedevice(), which caused input core to accumulate events reported while seeding initial device state before inputregisterdevice().

However, because EVSYN is only set in dev->evbit during inputregisterdevice() (and some drivers also overwrite dev->evbit directly before registration), any EVSYN/SYNREPORT events sent before registration were dropped by iseventsupported(), leaving those seeded events stuck in dev->vals until the next SYNREPORT after registration.

Always accept EVSYN in inputevent() and inputinjectevent() without checking dev->evbit so inputsync() flushes dev->vals as intended.

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

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

f2fs: flush SIT journal during filesystem resize

During a filesystem resize, SBIISRESIZEFS prevents new SIT entries from being added to the journal and forces existing entries to the SIT area. However, f2fsflushsitentries() returns early when there are no new dirty sentries, leaving existing journal entries behind.

After the main area shrinks, a later checkpoint can access a journal entry whose segment number is outside the new geometry and trigger f2fsbugon().

Only take the zero-dirty fast path when entries may be written back to the journal. This lets resize drain existing entries through removesitsinjournal() even when there are no new dirty sentries.

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

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

hwmon: (sht4x) Fix jiffies wraparound in heater-ready check

sht4x stores in ->heatingcomplete the jiffies deadline at which the current heater pulse finishes. It is set once at probe (to jiffies) and only updated when the heater is explicitly enabled via sysfs, so in the common case where the heater is never used it stays frozen at its probe value.

->heatingcomplete is an unsigned long compared with timebefore(), whose signed difference is only meaningful while the two values are within LONGMAX jiffies of each other. Because the deadline is frozen, jiffies keeps advancing away from it, and after 2^31 jiffies the difference flips sign. On a 32-bit HZ=100 kernel that happens ~248.5 days after boot. timebefore() in sht4xreadvalues() then wrongly reports that heating is still in progress and the read path executes

msleep(jiffiestomsecs(data->heatingcomplete - currjiffies));

with a bogus, huge delta, blocking the temperature read for a very long time instead of returning data. The heaterenable sysfs attributes are affected the same way (spurious -EBUSY and "1" readback).

Store the deadline as a 64-bit jiffies value and compare it with getjiffies64()/timebefore64(), which does not wrap in any practical uptime.

[groeck: Squashed 'Fix torn read' patch into this one]

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

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

rtc: pcf8563: pass the driver data to the alarm interrupt handler

pcf8563irq() takes its devid as struct pcf8563, but probe still registers the interrupt with the i2c client. The handler then takes the regmap pointer from the wrong structure: the first alarm oopses, the level-low INT is never acknowledged, and the interrupt gets disabled as spurious.

Only an RTC that has an interrupt (client->irq > 0) reaches this path.

1 / 3
Source: MITRE
First published (updated )
Severity
2.4
AV:P/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

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

hwmon: (gigabytewaterforce) reject short input reports

The HID rawevent callback runs before HID core validates the received report length. waterforcerawevent() reads command bytes and then accesses fixed offsets for firmware or status data without any length checks. A truncated report can therefore cause out-of-bounds reads and update hwmon state with unrelated data.

Require every report to contain the firmware response fields, which also covers both command bytes. After identifying a status response, require the byte at the highest status offset before accessing its payload.

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

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

ublk: pin module while release work is pending

ublkchrelease() takes a device reference and queues exitwork. The VFS module reference held through the file operations is dropped after ->release() returns. A queued work item does not acquire its own module reference for the callback.

Consequently, normal module removal can start while exitwork is pending or executing. In addition to the worker callback itself, the final device put can invoke ublkcdevrel(), which is also module code.

Take a module reference while ->release() is still covered by the file operations reference and drop it only after the worker has completed its final device put. A rearming worker retains the same reference.

Merely canceling exitwork during module exit is insufficient. The worker is the terminal path for the device reference taken by ublkchrelease(), so its cancellation would strand that reference and skip the associated cleanup.

1 / 3
Source: MITRE
First published (updated )
Severity
2
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:

alpha: only use a targeted tbi() when the target mm is really current

ipiflushtlbpage() gates a targeted tbi() on current->activemm. tbi() acts on the address space context currently loaded on the CPU, so it is only guaranteed to reach an mm's translations when a thread of that mm is running there. current->activemm is not sufficient: under lazy TLB an idle or kernel task keeps an mm as its activemm while a different ASN is loaded, so the invalidate is issued against the wrong context and the stale entry can survive. Nothing retires the old ASN afterwards either, mm->context[cpu] still being valid, so the resuming thread can reuse it.

Test current->mm instead and otherwise fall back to flushtlbother(), which clears mm->context[cpu] and forces a fresh ASN at the next switch whatever is loaded now.

For an mm borrowed through kthreadusemm(), patch 1 of this series installs the context before the task can take a shootdown IPI. The current->mm test therefore covers that case as well.

1 / 3
Source: NVD
First published (updated )
Severity
2
AV:L/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

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

RDS/IB: validate receive fragment completions

rdsibprocessrecv() accounts every receive fragment as contributing min(irecvdatarem, RDSFRAGSIZE) bytes, regardless of the completion length. When a completion is shorter than the header-declared amount, receive accounting can advance beyond the payload supplied by the completion.

Only an IBWCRECV completion has the buffer layout expected by this receive path. Other successful completion opcodes must not be interpreted as ordinary receive completions.

Reject successful completions with any other opcode before processing their length. For ordinary receive completions, require enough payload to cover the amount accounted to the fragment before linking its page into the incoming message.

This is compatible with the current transmit paths. MSGZEROCOPY is restricted to RDS/TCP, while RDS/IB copied and page-vector messages use full-sized non-final scatterlist entries.

Found during an LLM-assisted source audit and validated under KMSAN with a malformed short receive completion.

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

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

f2fs: fix defragment writeback range truncation on 32-bit

f2fsdefragmentrange() flushes the range it is about to defragment:

filemapwriteandwaitrange(inode->imapping, pgstart << PAGESHIFT, (pgend << PAGESHIFT) - 1);

pgstart and pgend are pgofft, 32 bits on 32-bit kernels, so both shifts are evaluated in 32 bits and truncated before they are widened to the lofft parameters. pgend is only capped by the file's page count, so for a file larger than 4 GiB the shift wraps.

For a 5 GiB file pgend is 1310720 and the range collapses from [0, 5 GiB) to [0, 1 GiB), leaving the rest of the dirty pages unwritten before the blocks are moved. For 8 GiB the shift yields 0, the minus one makes it (lofft)-1, and the range becomes [0, LLONGMAX].

The matching call in f2fscollapserange() already casts:

filemapwriteandwaitrange(inode->imapping, (lofft)index << PAGESHIFT, ((lofft)pgend << PAGESHIFT) - 1);

Do the same here. On i386 the shift changes from "shl $0xc,%ecx" to "shld", i.e. from a 32-bit shift to a double-precision one.

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

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

iommufd: Keep dmabuf PFNs MMIO when filling another domain

A VFIO PCI dmabuf mapped into an IOAS is mapped with IOMMUMMIO only in the domains present when it is mapped. A domain added later, or a copy of the area into another IOAS, maps the same BAR as cacheable CPU memory: IOMMUCACHE set and IOMMUMMIO clear.

Once the area is in pages->domainsitree, pfnreaderfillspan() reads its PFNs back from the storage domain through batchfromdomain(), which adds them with batchaddpfn() as BATCHCPUMEMORY. Only a hole in the span reaches pfnreaderfilldmabuf() and gets BATCHMMIO, so batchtodomain() programs the later domain with the wrong prot.

The effect depends on the page table format. io-pgtable-arm maps the BAR as Normal cacheable instead of Device memory, the AMDv1 and x8664 genericpt formats set the SME C-bit on it when the tables are encrypted, and the RISC-V format with Svpbmt maps it as normal memory instead of IO.

Read dmabuf PFNs from the recorded phys for every span, before the xarray and domain paths. The phys range is always available, and the read-back from a domain only serves to avoid re-pinning user pages.

Sashiko pointed this out while reviewing an RFC that plumbs the dma-buf memory type through pfnreaderfilldmabuf().

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

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

serial: 8250omap: set priv->line before enabling the IRQ

omap8250irq() is requested in omap8250probe() with IRQNOAUTOEN and enabled only in omap8250startup(). The handler obtains the port by serial8250getport(priv->line), but probe stores priv->line only after serial8250register8250port() returns.

The port becomes visible to userspace already inside serial8250register8250port() (uartaddoneport()). So it can be opened -- and the IRQ enabled -- before probe stores the line. An interrupt in that window makes the handler call serial8250getport(-ENODEV) and dereference a pointer outside of serial8250ports[].

Store the line in omap8250startup() before enableirq(), so the handler never runs with an unset line. Keep the assignment in probe too, as remove and the system PM callbacks rely on it even when the port was never opened.

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

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

arm64/mm: Treat faults taken by EFI runtime firmware as kernel faults

When EFI runtime services are invoked from a preemptible kthread, the kthread runs with efimm installed via kthreadusemm() and preemption enabled, so neither faulthandlerdisabled() nor !mm applies in dopagefault(). A permission fault taken by the firmware on one of its own (TTBR0) mappings then hits the 'access to user memory outside uaccess routines' check and oopses, without efiruntimefixupexception() ever being consulted.

efimm has no VMAs, so there is nothing for the mm to resolve. Send such faults to nocontext directly, so that dokernelfault() can recover from them as it does when the call is made with preemption disabled.

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

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

serial: 8250exar: store the GPIO platform device in struct exar8250

The GPIO platform device is registered via platform->registergpio() when port 0 is being set up. It is stored to port->port.privatedata of the on-stack uart template (and from there it is copied into every registered port). pcixr17v35xexit() then fetches it back by serial8250getport(priv->line[0]).

But port 0 does not have to exist at that point. If serial8250register8250port() fails for port 0, priv->line[0] holds a negative error code. The probe still succeeds (it only breaks the loop), so on unbind, priv->line[0] (a negative value) is passed to serial8250getport(). The GPIO device is never unregistered and a bogus port is accessed.

The same problem would also occur after the planned conversion of serial8250register8250port() to return a uart port instead of a line. As Sashiko pointed out in that case: If board->setup() fails for the first port (i=0) in exarpciprobe(), priv->uport[0] remains NULL. If serial8250register8250port() fails, it returns an ERRPTR. In either case, the loop breaks and probe returns success. When the device is later unbound, pcixr17v35xexit() unconditionally passes priv->uport[0] to platform->unregistergpio(), which will dereference it without checking for validity.

The GPIO device belongs to the PCI device, not to any particular port. So store it in a new struct exar8250::gpio member. Pass priv to both ->registergpio() and ->unregistergpio(), so that pcixr17v35xexit() does not need to look up any port at all.

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

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

ARM: 9523/1: topology: allocate the cacheinfo early on the boot CPU

ARM secondary CPUs allocate cacheinfo in detectcacheattributes(), called from secondarystartkernel() with interrupts disabled. With PREEMPTRT, the allocation takes a sleeping lock and triggers "BUG: sleeping function called from invalid context".

Call fetchcacheinfo() for each possible CPU from initcputopology() on the boot CPU, following commit 5944ce092b97 ("archtopology: Build cacheinfo from primary CPU"). This supplies the arrays before secondary CPUs populate them. Suppress -ENOENT and -EOPNOTSUPP, which leave cache detection to the existing late path.

The CLIDR fallback uses the boot CPU's cache geometry. A secondary CPU with more cache leaves can still require late reallocation and trigger the warning.

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

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

dax: Return errors from daxcoreinit()

daxcoreinit() returns success when either the character device number allocation or DAX bus registration fails, even though the error paths have already released the initialized resources.

For modular DAX, this allows the module to remain loaded despite failed initialization, leaving subsequent users and module removal to access resources that have already been released.

Return the error code from the failed operation so that module loading fails rather than reporting successful initialization after the resources have been released.

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

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

spi: amd: fix len==0 underflow and FIFO overflow

amdspififoxfer() unconditionally decrements xfer->len when a txbuf is present. The SPI core does not reject zero-length transfers, so a transfer submitted through the SPIIOCMESSAGE ioctl with len == 0 and a txbuf makes the u32 len wrap to 0xFFFFFFFF, and the following per-byte loop writes far past the FIFO window.

The driver also never checks the cumulative FIFO offset against AMDSPIFIFOSIZE. The core splits each transfer down to the controller's max transfer size but does not bound the total message length, so a message of several transfers whose total exceeds the FIFO overflows it with out-of-bounds MMIO writes (tx) and reads (rx).

Skip zero-length transfers and reject any transfer that would run past the end of the FIFO window.

Tested with a user-space replica of the fifoxfer length arithmetic (ASAN build): a zero-length transfer with txbuf makes len-- wrap to 0xffffffff, and skipping zero-length transfers avoids the wrap. No AMD SPI hardware was available, so the FIFO bound check was verified by inspection against AMDSPIFIFOSIZE.

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

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

iommupt: Do not allow PTEs to be split when dirty logging

If a single PTE cannot be stored in the current bitmap that should be a failure and reported back to userspace. Allowing a PTE to be split creates a possibility that dirty memory will be reported as clean.

The gather must also cover the entire PTE that is being cleaned, not just the part that fits within the bitmap.

Fix both issues by computing the full IOVA range of every PTE and using that to update the bitmap and the gather. The bitmap code now rejects ranges that don't fit in it, and the gather always combined ranges.

The selftest quietly relied on a bug where the CONT was split, that is why the half page size for the mock domain saw alternating dirties. Increase the dirty test page size to PAGESIZE so it still works as intended.

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

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

spi: bcm-qspi: reject oversized dummy bytes in mspi execmemop

bcmqspimspiexecmemop() builds a local command buffer cmd[6] holding one opcode byte, up to four address bytes and one spare byte, and sets t[0].len = op->addr.nbytes + op->dummy.nbytes + 1. bcmqspiexecmemop() only validates op->addr.nbytes <= 4 and never bounds op->dummy.nbytes, which spimemcheckop() also leaves unrestricted. With addr.nbytes = 4 and dummy.nbytes >= 2 the length becomes 7 or more, so writetohw() reads past cmd[] on the kernel stack and pushes the leaked bytes into the hardware TXRAM.

Reject operations whose dummy phase does not fit the remaining byte of cmd[] by requiring op->dummy.nbytes <= 1, so such transfers fall back to the generic SPI path instead of overrunning the buffer.

1 / 3
Source: MITRE
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