Where
AND
-Infinity
0
Severity
2
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:

dmaengine: ti: dma-crossbar: fix device leak on am335x route allocation

Make sure to drop the reference taken when looking up the crossbar platform device during am335x route allocation.

1 / 3
Source: NVD
First published (updated )
Severity
2.4
Input Validation
AV:P/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L

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

net: usb: asix: validate PHY address before use

The ASIX driver reads the PHY address from the USB device via asixreadphyaddr(). A malicious or faulty device can return an invalid address (>= PHYMAXADDR), which causes a warning in mdiobusgetphy():

addr 207 out of range WARNING: drivers/net/phy/mdiobus.c:76

Validate the PHY address in asixreadphyaddr() and remove the now-redundant check in ax88172a.c.

1 / 4
Source: MITRE
First published (updated )
Severity
1
Use After Free, Race Condition

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

usb: phy: fsl-usb: Fix use-after-free in delayed work during device removal

The delayed work item otgevent is initialized in fslotgconf() and scheduled under two conditions: 1. When a host controller binds to the OTG controller. 2. When the USB ID pin state changes (cable insertion/removal).

A race condition occurs when the device is removed via fslotgremove(): the fslotg instance may be freed while the delayed work is still pending or executing. This leads to use-after-free when the work function fslotgevent() accesses the already freed memory.

The problematic scenario:

(detach thread) | (delayed work) fslotgremove() | kfree(fslotgdev) //FREE| fslotgevent() | og = containerof(...) //USE | og-> //USE

Fix this by calling disabledelayedworksync() in fslotgremove() before deallocating the fslotg structure. This ensures the delayed work is properly canceled and completes execution prior to memory deallocation.

This bug was identified through static analysis.

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

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

iio: adc: at91-sama5d2adc: Fix potential use-after-free in sama5d2adc driver

at91adcinterrupt can call at91adctouchdatahandler function to start the work by schedulework(&st->touchst.workq).

If we remove the module which will call at91adcremove to make cleanup, it will free indiodev through iiodeviceunregister but quite a bit later. While the work mentioned above will be used. The sequence of operations that may lead to a UAF bug is as follows:

CPU0 CPU1

| at91adcworkqhandler at91adcremove | iiodeviceunregister(indiodev) | //free indiodev a bit later | | iiopushtobuffers(indiodev) | //use indiodev

Fix it by ensuring that the work is canceled before proceeding with the cleanup in at91adcremove.

1 / 3
Source: NVD
First published (updated )
Severity
2.4
AV:P/AC:L/AT:N/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:

isdn: mISDN: hfcsusb: fix memory leak in hfcsusbprobe()

In hfcsusbprobe(), the memory allocated for ctrlurb gets leaked when setupinstance() fails with an error code. Fix that by freeing the urb before freeing the hw structure. Also change the error paths to use the goto ladder style.

Compile tested only. Issue found using a prototype static analysis tool.

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

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

ASoC: Intel: avs: Do not share the name pointer between components

By sharing 'name' directly, tearing down components may lead to use-after-free errors. Duplicate the name to avoid that.

At the same time, update the order of operations - since commit cee28113db17 ("ASoC: dmaenginepcm: Allow passing component name via config") the framework does not override component->name if set before invoking the initializer.

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

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

mmc: alcor: fix return value check of mmcaddhost()

mmcaddhost() may return error, if we ignore its return value, the memory that allocated in mmcallochost() will be leaked and it will lead a kernel crash because of deleting not added device in the remove path.

So fix this by checking the return value and calling mmcfreehost() in the error path.

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

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

drm: Prevent drmcopyfield() to attempt copying a NULL pointer

There are some struct drmdriver fields that are required by drivers since drmcopyfield() attempts to copy them to user-space via DRMIOCTLVERSION.

But it can be possible that a driver has a bug and did not set some of the fields, which leads to drmcopyfield() attempting to copy a NULL pointer:

[ +10.395966] Unable to handle kernel access to user memory outside uaccess routines at virtual address 0000000000000000 [ +0.010955] Mem abort info: [ +0.002835] ESR = 0x0000000096000004 [ +0.003872] EC = 0x25: DABT (current EL), IL = 32 bits [ +0.005395] SET = 0, FnV = 0 [ +0.003113] EA = 0, S1PTW = 0 [ +0.003182] FSC = 0x04: level 0 translation fault [ +0.004964] Data abort info: [ +0.002919] ISV = 0, ISS = 0x00000004 [ +0.003886] CM = 0, WnR = 0 [ +0.003040] user pgtable: 4k pages, 48-bit VAs, pgdp=0000000115dad000 [ +0.006536] [0000000000000000] pgd=0000000000000000, p4d=0000000000000000 [ +0.006925] Internal error: Oops: 96000004 [#1] SMP ... [ +0.011113] pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ +0.007061] pc : pistrlen+0x14/0x150 [ +0.003895] lr : drmcopyfield+0x30/0x1a4 [ +0.004156] sp : ffff8000094b3a50 [ +0.003355] x29: ffff8000094b3a50 x28: ffff8000094b3b70 x27: 0000000000000040 [ +0.007242] x26: ffff443743c2ba00 x25: 0000000000000000 x24: 0000000000000040 [ +0.007243] x23: ffff443743c2ba00 x22: ffff8000094b3b70 x21: 0000000000000000 [ +0.007241] x20: 0000000000000000 x19: ffff8000094b3b90 x18: 0000000000000000 [ +0.007241] x17: 0000000000000000 x16: 0000000000000000 x15: 0000aaab14b9af40 [ +0.007241] x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000 [ +0.007239] x11: 0000000000000000 x10: 0000000000000000 x9 : ffffa524ad67d4d8 [ +0.007242] x8 : 0101010101010101 x7 : 7f7f7f7f7f7f7f7f x6 : 6c6e6263606e7141 [ +0.007239] x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000000 [ +0.007241] x2 : 0000000000000000 x1 : ffff8000094b3b90 x0 : 0000000000000000 [ +0.007240] Call trace: [ +0.002475] pistrlen+0x14/0x150 [ +0.003537] drmversion+0x84/0xac [ +0.003448] drmioctlkernel+0xa8/0x16c [ +0.003975] drmioctl+0x270/0x580 [ +0.003448] arm64sysioctl+0xb8/0xfc [ +0.003978] invokesyscall+0x78/0x100 [ +0.003799] el0svccommon.constprop.0+0x4c/0xf4 [ +0.004767] doel0svc+0x38/0x4c [ +0.003357] el0svc+0x34/0x100 [ +0.003185] el0t64synchandler+0x11c/0x150 [ +0.004418] el0t64sync+0x190/0x194 [ +0.003716] Code: 92402c04 b200c3e8 f13fc09f 5400088c (a9400c02) [ +0.006180] ---[ end trace 0000000000000000 ]---

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

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

drm/amdkfd: Fix memory leak in kfdmemdmamapuserptr()

If the number of pages from the userptr BO differs from the SG BO then the allocated memory for the SG table doesn't get freed before returning -EINVAL, which may lead to a memory leak in some error paths. Fix this by checking the number of pages before allocating memory for the SG table.

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

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

s390/netiucv: Fix return type of netiucvtx()

With clang's kernel control flow integrity (kCFI, CONFIGCFICLANG), indirect call targets are validated against the expected function pointer prototype to make sure the call target is valid to help mitigate ROP attacks. If they are not identical, there is a failure at run time, which manifests as either a kernel panic or thread getting killed. A proposed warning in clang aims to catch these at compile time, which reveals:

drivers/s390/net/netiucv.c:1854:21: error: incompatible function pointer types initializing 'netdevtxt ()(struct skbuff , struct netdevice )' (aka 'enum netdevtx ()(struct skbuff , struct netdevice )') with an expression of type 'int (struct skbuff , struct netdevice )' [-Werror,-Wincompatible-function-pointer-types-strict] .ndostartxmit = netiucvtx, ^~~~~~~~~~

->ndostartxmit() in 'struct netdeviceops' expects a return type of 'netdevtxt', not 'int'. Adjust the return type of netiucvtx() to match the prototype's to resolve the warning and potential CFI failure, should s390 select ARCHSUPPORTSCFICLANG in the future.

Additionally, while in the area, remove a comment block that is no longer relevant.

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

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

s390/vfio-ap: fix memory leak in vfioap device driver

The device release callback function invoked to release the matrix device uses the devgetdrvdata(device dev) function to retrieve the pointer to the vfiomatrixdev object in order to free its storage. The problem is, this object is not stored as drvdata with the device; since the kfree function will accept a NULL pointer, the memory for the vfiomatrixdev object is never freed.

Since the device being released is contained within the vfiomatrixdev object, the containerof macro will be used to retrieve its pointer.

1 / 2
Source: NVD
First published (updated )
Severity
2.4
AV:P/AC:L/AT:N/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:

mtd: spi-nor: Fix shift-out-of-bounds in spinorseterasetype

spinorseterasetype() was used either to set or to mask out an erase type. When we used it to mask out an erase type a shift-out-of-bounds was hit: UBSAN: shift-out-of-bounds in drivers/mtd/spi-nor/core.c:2237:24 shift exponent 4294967295 is too large for 32-bit type 'int'

The setting of the size{shift, mask} and of the opcode are unnecessary when the erase size is zero, as throughout the code just the erase size is considered to determine whether an erase type is supported or not. Setting the opcode to 0xFF was wrong too as nobody guarantees that 0xFF is an unused opcode. Thus when masking out an erase type, just set the erase size to zero. This will fix the shift-out-of-bounds.

[ta: refine changes, new commit message, fix compilation error]

1 / 2
Source: NVD
First published (updated )
Severity
2.4
AV:P/AC:L/AT:N/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:

media: uvcvideo: Fix memory leak in uvcgpioparse

Previously the unit buffer was allocated before checking the IRQ for privacy GPIO. In case of error, the unit buffer was leaked.

Allocate the unit buffer after the IRQ to avoid it.

Addresses-Coverity-ID: 1474639 ("Resource leak")

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

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

md/raid10: fix memleak of md thread

In raid10run(), if setupconf() succeed and raid10run() failed before setting 'mddev->thread', then in the error path 'conf->thread' is not freed.

Fix the problem by setting 'mddev->thread' right after setupconf().

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

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

dm integrity: Fix UAF in dmintegritydtr()

Dmintegrity also has the same UAF problem when dmresume() and dmdestroy() are concurrent.

Therefore, cancelling timer again in dmintegritydtr().

1 / 3
Source: NVD
First published (updated )
Severity
2.4
AV:P/AC:L/AT:N/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: rt2x00: Fix memory leak when handling surveys

When removing a rt2x00 device, its associated channel surveys are not freed, causing a memory leak observable with kmemleak:

unreferenced object 0xffff9620f0881a00 (size 512): comm "systemd-udevd", pid 2290, jiffies 4294906974 (age 33.768s) hex dump (first 32 bytes): 70 44 12 00 00 00 00 00 92 8a 00 00 00 00 00 00 pD.............. 00 00 00 00 00 00 00 00 ab 87 01 00 00 00 00 00 ................ backtrace: [<ffffffffb0ed858b>] kmalloc+0x4b/0x130 [<ffffffffc1b0f29b>] rt2800probehw+0xc2b/0x1380 [rt2800lib] [<ffffffffc1a9496e>] rt2800usbprobehw+0xe/0x60 [rt2800usb] [<ffffffffc1ae491a>] rt2x00libprobedev+0x21a/0x7d0 [rt2x00lib] [<ffffffffc1b3b83e>] rt2x00usbprobe+0x1be/0x980 [rt2x00usb] [<ffffffffc05981e2>] usbprobeinterface+0xe2/0x310 [usbcore] [<ffffffffb13be2d5>] reallyprobe+0x1a5/0x410 [<ffffffffb13be5c8>] driverprobedevice+0x78/0x180 [<ffffffffb13be6fe>] driverprobedevice+0x1e/0x90 [<ffffffffb13be972>] driverattach+0xd2/0x1c0 [<ffffffffb13bbc57>] busforeachdev+0x77/0xd0 [<ffffffffb13bd2a2>] busadddriver+0x112/0x210 [<ffffffffb13bfc6c>] driverregister+0x5c/0x120 [<ffffffffc0596ae8>] usbregisterdriver+0x88/0x150 [usbcore] [<ffffffffb0c011c4>] dooneinitcall+0x44/0x220 [<ffffffffb0d6134c>] doinitmodule+0x4c/0x220

Fix this by freeing the channel surveys on device removal.

Tested with a RT3070 based USB wireless adapter.

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

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

drm/amdgpu: Fix PCI device refcount leak in amdgpuatrmgetbios()

As comment of pcigetclass() says, it returns a pcidevice with its refcount increased and decreased the refcount for the input parameter @from if it is not NULL.

If we break the loop in amdgpuatrmgetbios() with 'pdev' not NULL, we need to call pcidevput() to decrease the refcount. Add the missing pcidevput() to avoid refcount leak.

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

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

configfs: fix possible memory leak in configfscreatedir()

kmemleak reported memory leaks in configfscreatedir():

unreferenced object 0xffff888009f6af00 (size 192): comm "modprobe", pid 3777, jiffies 4295537735 (age 233.784s) backtrace: kmemcachealloc (mm/slub.c:3250 mm/slub.c:3256 mm/slub.c:3263 mm/slub.c:3273) newfragment (./include/linux/slab.h:600 fs/configfs/dir.c:163) configfsregistersubsystem (fs/configfs/dir.c:1857) basicwrite (drivers/hwtracing/stm/pbasic.c:14) stmpbasic dooneinitcall (init/main.c:1296) doinitmodule (kernel/module/main.c:2455) ...

unreferenced object 0xffff888003ba7180 (size 96): comm "modprobe", pid 3777, jiffies 4295537735 (age 233.784s) backtrace: kmemcachealloc (mm/slub.c:3250 mm/slub.c:3256 mm/slub.c:3263 mm/slub.c:3273) configfsnewdirent (./include/linux/slab.h:723 fs/configfs/dir.c:194) configfsmakedirent (fs/configfs/dir.c:248) configfscreatedir (fs/configfs/dir.c:296) configfsattachgroup.isra.28 (fs/configfs/dir.c:816 fs/configfs/dir.c:852) configfsregistersubsystem (fs/configfs/dir.c:1881) basicwrite (drivers/hwtracing/stm/pbasic.c:14) stmpbasic dooneinitcall (init/main.c:1296) doinitmodule (kernel/module/main.c:2455) ...

This is because the refcount is not correct in configfsmakedirent(). For normal stage, the refcount is changing as:

configfsregistersubsystem() configfscreatedir() configfsmakedirent() configfsnewdirent() # set scount = 1 dentry->dfsdata = configfsget(sd); # scount = 2 ... configfsunregistersubsystem() configfsremovedir() removedir() configfsremovedirent() # scount = 1 dput() ... dentryunlinkinode() configfsdiput() # scount = 0, release

However, if we failed in configfscreate():

configfsregistersubsystem() configfscreatedir() configfsmakedirent() # scount = 2 ... configfscreate() # fail ->outremove: configfsremovedirent(dentry) configfsput(sd) # scount = 1 return PTRERR(inode);

There is no inode in the error path, so the configfsdiput() is lost and makes sd and fragment memory leaked.

To fix this, when we failed in configfscreate(), manually call configfsput(sd) to keep the refcount correct.

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

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

drm/amdgpu: Fix type of second parameter in odneditdpmtable() callback

With clang's kernel control flow integrity (kCFI, CONFIGCFICLANG), indirect call targets are validated against the expected function pointer prototype to make sure the call target is valid to help mitigate ROP attacks. If they are not identical, there is a failure at run time, which manifests as either a kernel panic or thread getting killed. A proposed warning in clang aims to catch these at compile time, which reveals:

drivers/gpu/drm/amd/amdgpu/../pm/swsmu/amdgpusmu.c:3008:29: error: incompatible function pointer types initializing 'int ()(void , uint32t, long , uint32t)' (aka 'int ()(void , unsigned int, long , unsigned int)') with an expression of type 'int (void , enum PPODDPMTABLECOMMAND, long , uint32t)' (aka 'int (void , enum PPODDPMTABLECOMMAND, long , unsigned int)') [-Werror,-Wincompatible-function-pointer-types-strict] .odneditdpmtable = smuodeditdpmtable, ^~~~~~~~~~~~~~~~~~~~~ 1 error generated.

There are only two implementations of ->odneditdpmtable() in 'struct amdpmfuncs': smuodeditdpmtable() and ppodneditdpmtable(). One has a second parameter type of 'enum PPODDPMTABLECOMMAND' and the other uses 'u32'. Ultimately, smuodeditdpmtable() calls ->odeditdpmtable() from 'struct pptablefuncs' and ppodneditdpmtable() calls ->odneditdpmtable() from 'struct pphwmgrfunc', which both have a second parameter type of 'enum PPODDPMTABLECOMMAND'.

Update the type parameter in both the prototype in 'struct amdpmfuncs' and ppodneditdpmtable() to 'enum PPODDPMTABLECOMMAND', which cleans up the warning.

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

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

ASoC: da7219: Fix an error handling path in da7219registerdaiclks()

If clkhwregister() fails, the corresponding clk should not be unregistered.

To handle errors from loops, clean up partial iterations before doing the goto. So add a clkhwunregister(). Then use a while (--i >= 0) loop in the unwind section.

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

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

m68k: Only force 030 bus error if PC not in exception table

getkernelnofault() does copy data in supervisor mode when forcing a task backtrace log through /proc/sysrqtrigger. This is expected cause a bus error exception on e.g. NULL pointer dereferencing when logging a kernel task has no workqueue associated. This bus error ought to be ignored.

Our 030 bus error handler is ill equipped to deal with this:

Whenever ssw indicates a kernel mode access on a data fault, we don't even attempt to handle the fault and instead always send a SEGV signal (or panic). As a result, the check for exception handling at the fault PC (buried in sendsigfault() which gets called from dopagefault() eventually) is never used.

In contrast, both 040 and 060 access error handlers do not care whether a fault happened on supervisor mode access, and will call dopagefault() on those, ultimately honoring the exception table.

Add a check in buserror030 to call dopagefault() in case we do have an entry for the fault PC in our exception table.

I had attempted a fix for this earlier in 2019 that did rely on testing pagefaultdisabled() (see link below) to achieve the same thing, but this patch should be more generic.

Tested on 030 Atari Falcon.

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

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

tracing: Fix warning in tracebufferedeventdisable()

Warning happened in tracebufferedeventdisable() at WARNONONCE(!tracebufferedeventref)

Call Trace: ? warn+0xa5/0x1b0 ? tracebufferedeventdisable+0x189/0x1b0 ftraceeventenabledisable+0x19e/0x3e0 freeprobedata+0x3b/0xa0 unregisterftracefunctionprobefunc+0x6b8/0x800 eventenablefunc+0x2f0/0x3d0 ftraceprocessregex.isra.0+0x12d/0x1b0 ftracefilterwrite+0xe6/0x140 vfswrite+0x1c9/0x6f0 [...]

The cause of the warning is in ftraceeventenabledisable(), tracebufferedeventenable() was called once while tracebufferedeventdisable() was called twice. Reproduction script show as below, for analysis, see the comments: #!/bin/bash

cd /sys/kernel/tracing/

# 1. Register a 'disableevent' command, then: # 1) SOFTDISABLEDBIT was set; # 2) tracebufferedeventenable() was called first time; echo 'cmdlineprocshow:disableevent:initcall:initcallfinish' > \ setftracefilter

# 2. Enable the event registered, then: # 1) SOFTDISABLEDBIT was cleared; # 2) tracebufferedeventdisable() was called first time; echo 1 > events/initcall/initcallfinish/enable

# 3. Try to call into cmdlineprocshow(), then SOFTDISABLEDBIT was # set again!!! cat /proc/cmdline

# 4. Unregister the 'disableevent' command, then: # 1) SOFTDISABLEDBIT was cleared again; # 2) tracebufferedeventdisable() was called second time!!! echo '!cmdlineprocshow:disableevent:initcall:initcallfinish' > \ setftracefilter

To fix it, IIUC, we can change to call tracebufferedeventenable() at fist time soft-mode enabled, and call tracebufferedeventdisable() at last time soft-mode disabled.

1 / 2
Source: NVD
First published (updated )
Severity
1
Null Pointer Dereference

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

media: dvb-usb-v2: gl861: Fix null-ptr-deref in gl861i2cmasterxfer

In gl861i2cmasterxfer, msg is controlled by user. When msg[i].buf is null and msg[i].len is zero, former checks on msg[i].buf would be passed. Malicious data finally reach gl861i2cmasterxfer. If accessing msg[i].buf[0] without sanity check, null ptr deref would happen. We add check on msg[i].len to prevent crash.

Similar commit: commit 0ed554fd769a ("media: dvb-usb: az6027: fix null-ptr-deref in az6027i2cxfer()")

1 / 2
Source: NVD
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