| CVE |
Vendors |
Products |
Updated |
CVSS v3.1 |
| In the Linux kernel, the following vulnerability has been resolved:
md: validate bblog_size when loading v1.x badblocks metadata
In super_1_load(), when the on-disk feature_map does not have
MD_FEATURE_BAD_BLOCKS set but sb->bblog_offset is non-zero,
rdev->badblocks.shift is initialized to 0 without validating
sb->bblog_size. The same field is validated in the
MD_FEATURE_BAD_BLOCKS branch ("sectors > (PAGE_SIZE / 512)"), but this
branch bypasses that check.
A forged on-disk superblock (malicious storage device or crafted
image) can therefore carry an oversized sb->bblog_size. When bad
blocks are later recorded, super_1_sync() sets bb->size from
sb->bblog_size and md_write_metadata() issues a bio larger than the
single rdev->bb_page, reading beyond the page and leaking kernel
memory contents to disk.
sb->bblog_size is never modified by the kernel between load and sync,
and the MD_FEATURE_BAD_BLOCKS branch already validates it, so checking
it in this branch is sufficient to cover both paths.
Fix this by rejecting an oversized sb->bblog_size with -EINVAL,
matching the existing check in the MD_FEATURE_BAD_BLOCKS branch. |
| In the Linux kernel, the following vulnerability has been resolved:
ntfs3: reject empty iomap before reading its LCN
attr_data_get_block() can return success with a zero run length when no
cached or on-disk mapping covers a read VCN. In that case it does not
initialize the LCN output.
Check the returned length before comparing the LCN against the special
mapping values. This preserves the existing -EINVAL result for an empty
mapping without passing an uninitialized LCN to the comparisons. |
| In the Linux kernel, the following vulnerability has been resolved:
f2fs: compress: fix to handle race between truncate and writeback
fsstress reports a kernel BUG in f2fs_truncate_partial_cluster():
kernel BUG at fs/f2fs/compress.c:1238!
RIP: 0010:f2fs_truncate_partial_cluster+0x292/0x2a0
Call Trace:
<TASK>
f2fs_truncate+0xf6/0x210
f2fs_setattr+0x6b7/0x770
notify_change+0x33b/0x520
do_truncate+0xc2/0xf0
vfs_truncate+0x153/0x1d0
ksys_truncate+0x78/0xd0
__x64_sys_truncate+0x16/0x20
do_syscall_64+0xbe/0x540
The root cause is that Thread A (truncate) and Thread B (background
writeback or fsync) can race as follows:
Thread A Thread B
- f2fs_setattr
- f2fs_truncate
- f2fs_truncate_blocks
- f2fs_truncate_partial_cluster
- f2fs_is_compressed_cluster
return 1
- f2fs_write_cache_pages
- f2fs_write_multi_pages
- f2fs_write_raw_pages
- f2fs_write_single_data_page
dn.data_blkaddr != COMPRESS_ADDR
(cluster converted to normal)
- f2fs_prepare_compress_overwrite
- f2fs_is_compressed_cluster
return 0
- return 0
- f2fs_bug_on(sbi, err == 0): BUG!
Writeback path does not acquire i_gc_rwsem or filemap_invalidate_lock.
When a compressed cluster fails compression during writeback, it is
overwritten with raw data blocks. If Thread A checked
f2fs_is_compressed_cluster() before the conversion, but calls
f2fs_prepare_compress_overwrite() after the conversion,
f2fs_prepare_compress_overwrite() returns 0 because the cluster is no
longer a compressed cluster.
To fix this, remove the f2fs_bug_on() and retry checking the cluster status
when f2fs_prepare_compress_overwrite() returns 0, so that it can fall back
to f2fs_do_truncate_blocks() to handle it as a normal cluster. |
| In the Linux kernel, the following vulnerability has been resolved:
PM: CPU: Restore synchronize_rcu() to cpu_pm_unregister_notifier()
cpu_pm_notify() walks the notifier chain lockless under only
rcu_read_lock(). That only works if a removed notifier block is not
freed until every concurrent walker is done with it.
The chain used to be an atomic_notifier, whose unregister ends in
synchronize_rcu(). Commit b2f6662ac08d ("PM: cpu: Make notifier chain
use a raw_spinlock_t") switched it over to a raw_notifier, and in
doing so replaced that with raw_notifier_chain_unregister(), which
does not synchronize. The grace period quietly went away, so a driver
that frees the memory holding its notifier block right after
cpu_pm_unregister_notifier() returns can race with a concurrent
walker:
cpu1 (idle exit) cpu2 (driver remove)
---------------- --------------------
cpu_pm_notify(CPU_PM_EXIT)
rcu_read_lock()
nb = rcu_dereference_raw(*nl)
cpu_pm_unregister_notifier(&od->nb)
unlink, no grace period
remove() frees od (devm)
nb->notifier_call(nb, ...)
/* use after free */
The rcu_read_lock() on cpu1 does not stop cpu2 from freeing the
block, and nothing else does. The read side is the idle exit path,
so this can hit on any system where a driver with a cpu_pm notifier
gets unbound.
Add the grace period back. It is only needed when a notifier was
actually removed, so wait on success and return -ENOENT without
waiting otherwise. The kerneldoc gets back the "may sleep" note that
the same commit dropped.
[ rjw: Subject tweak ] |
| In the Linux kernel, the following vulnerability has been resolved:
media: microchip-isc: synchronize the IRQ before disabling clocks on stop
isc_stop_streaming() masks the DMA interrupt and then drops the runtime
PM reference, which disables the ISC clocks. microchip_isc_interrupt()
may still be executing on another CPU at that point; it reads ISC_INTSR
over regmap, and touching the unclocked registers triggers an external
abort.
Store the IRQ number at probe and call synchronize_irq() after masking
the interrupt, before dropping the PM reference. |
| In the Linux kernel, the following vulnerability has been resolved:
regulator: irq: freeze deferred hardware access during suspend
The regulator IRQ helper delays status checks and recovery callbacks on
non-freezable workqueues. Those callbacks may access regulator hardware
after the backing bus has been suspended.
Use system_freezable_wq for normal-priority callbacks. Allocate a
freezable high-priority workqueue when requested so the high_prio
contract is preserved while hardware access is frozen across suspend. |
| Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. From 2.0.0 until 2.10.0, Addressable performs Unicode normalization on attacker-controlled input with quadratic complexity when it contains long runs of combining marks. URI normalization, comparison, display, routing, template operations, and host processing by the pure-Ruby IDNA implementation can consume excessive CPU time when they handle crafted input, resulting in denial of service. Starting with version 2.2.5, the issue affects only Ruby runtimes whose String#unicode_normalize implementation has quadratic complexity. This issue is fixed in version 2.10.0. |
| Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. From 2.0.0 until 2.10.0, Addressable::URI#user=, #password=, #userinfo=, and matching Addressable::URI.new options store userinfo values without rejecting or encoding host-changing delimiters. Values containing /, ?, or # can end userinfo early when Addressable::URI#to_s serializes the URI. An application that validates the URI object but sends the serialized string can disclose headers or request bodies to an attacker-controlled host. This issue is fixed in version 2.10.0. |
| Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. From 2.2.5 until 2.10.0, With the native IDNA backend, Addressable::URI#normalized_host passes a percent-encoded NUL after decoding to libidn, which truncates the remainder of the label. An application that checks the original host but uses normalize, origin, display_uri, or normalized_host can be made to send a request to a shortened host that it intended to block. This issue is fixed in version 2.10.0. |
| Trigger.dev 4.5.1 before 4.8.10 contains an improper authorization vulnerability in the /resources/taskruns/:runParam/debug loader that discloses plaintext environment API keys to organization members. Members who know a run ID can obtain root and parent environment API keys, including other members' development environments, to read and write through that environment's API. |
| FOG Project before 1.5.10.1870 and 1.6.0-alpha.980 before 1.6.0-beta.2316 contains an insufficiently protected credentials vulnerability in BootMenu (bootmenu.class.php), which embeds a host's Active Directory domain, OU, join username, and plaintext join password as kernel arguments in the iPXE boot script served by the unauthenticated service/ipxe/boot.php endpoint. Attackers on the imaging network who know the MAC address of a host with domain join enabled can request the boot script, or capture it during a PXE boot, to obtain reusable domain-join credentials, which may also be recorded in boot and server logs. |
| Netatalk 2.1.0 before 4.6.0 contains an improper link resolution vulnerability in check_addir() and read_addir() in bin/dbd/cmd_dbd_scanvol.c, which open and chdir() into a volume's .AppleDouble directory without rejecting a symbolic link and then unlink entries that have no matching file in the parent directory. Local users who can replace a .AppleDouble entry in a volume directory, for example through shell, SFTP, or NFS access to the same storage, can redirect dbd into an arbitrary directory so that a later repair-mode run by an administrator deletes files there with root privileges. |
| Netatalk 1.5.0 before 4.6.0 contains an improper privilege management vulnerability in afppasswd (bin/afppasswd/afppasswd.c), which when installed setuid-root accepts the administrative -a and -p options from unprivileged callers and opens the selected file for writing with root privileges before verifying the caller. Local users can append a fixed-format SRP placeholder record to any existing root-writable file, corrupting configuration, credential, or service state files. |
| Netatalk 3.1.0 before 4.6.0 contains an out-of-bounds write vulnerability in decompose_w() in libatalk/unicode/util_unistr.c that does not reserve space for the UTF-16 NUL terminator, so a decomposed string that exactly fills the destination is terminated two bytes past the end of the fixed stack buffer in charset_decompose(). Authenticated AFP users who can create a file path near the MAXPATHLEN limit containing selected Unicode characters can request its Spotlight metadata to corrupt stack memory and crash their AFP session process. |
| FOG Project 1.6.0-alpha.1315 before 1.6.0-beta.2760 contains a path traversal vulnerability in the snapin upload handlers in snapinmanagement.page.php, whose filename sanitizer preserves . and .., so a filename of . resolves to the snapin storage directory itself, which FOGSSH::delete() then empties before the upload. Authenticated users with snapin create or edit permission can upload a file named . to delete every top-level snapin file on the storage group's master node, or queue the same deletion for the root FileDeleter service across all nodes in the group. |
| FOG Project before 1.5.10.2149 and 1.6.0-alpha.980 before 1.6.0-beta.2726 contains an improper authentication vulnerability in FOGPage::authorize() in fogpage.class.php, which identifies the host by MAC address alone and clears its stored AES session key whenever the supplied token does not match. Unauthenticated attackers who know host MAC addresses can send bare authorize requests to wipe those hosts' keys, breaking encrypted FOG Client communication across the fleet until the keys are reset. |
| FOG Project 1.6.0-alpha.980 before 1.6.0-beta.2726 contains a cross-site request forgery vulnerability in FOGPage::delete() in fogpage.class.php, which destroys the requested object without requiring POST or validating a CSRF token, while the SameSite=Lax session cookie is still sent on top-level cross-site GET navigations. Attackers can lure an authenticated administrator to a crafted page that navigates to the delete URL, deleting arbitrary hosts, images, snapins, groups, users, or storage nodes. |
| FOG Project 1.6.0-alpha.1328 before 1.6.0-beta.2341 contains a path traversal vulnerability in the filedeletequeue API and the FileDeleter service (filedeleter.class.php), which joins the queued path to the storage root without rejecting ../ sequences and deletes the result recursively over SSH. Authenticated API users can create file delete queue entries with traversal paths to delete files and directories outside the image and snapin storage roots on storage nodes. |
| FOG Project before 1.5.10.1870 and 1.6.0-alpha.980 before 1.6.0-beta.2356 contains a stored cross-site scripting vulnerability in the Hosts and Users report that renders the usertracking username without output encoding after usertrack.class.php stores it unescaped from the request. Attackers who can submit user tracking events for a managed host, using that host's MAC address and token, can inject a script payload in the user parameter that executes in the browser of a FOG user who opens the report. |
| FOG Project before 1.5.10.2149 and 1.6.0-alpha.980 before 1.6.0-beta.2726 contains a missing authorization vulnerability in the management dispatcher (management/index.php and FOGPageManager) that exempts the ipxe and schema nodes from the login check. Unauthenticated remote attackers can send POST requests to the schema updater and, on the 1.6 line, create or edit iPXE boot menu entries, making persistent changes to the boot configuration served to imaging clients. |