CVE-2025-38190

Source
https://cve.org/CVERecord?id=CVE-2025-38190
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38190.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-38190
Downstream
Related
Published
2025-07-04T13:37:15.054Z
Modified
2026-03-20T12:42:43.737996Z
Summary
atm: Revert atm_account_tx() if copy_from_iter_full() fails.
Details

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

atm: Revert atmaccounttx() if copyfromiter_full() fails.

In vccsendmsg(), we account skb->truesize to sk->skwmemalloc by atmaccount_tx().

It is expected to be reverted by atmpopraw() later called by vcc->dev->ops->send(vcc, skb).

However, vccsendmsg() misses the same revert when copyfromiterfull() fails, and then we will leak a socket.

Let's factorise the revert part as atmreturntx() and call it in the failure path.

Note that the corresponding skwmemalloc operation can be found in alloc_tx() as of the blamed commit.

$ git blame -L:alloc_tx net/atm/common.c c55fa3cccbc2c~

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38190.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
Fixed
5e0d00992118e234ebf29d5145c1cc920342777e
Fixed
c12430edd92fd49a4800b0f3fb395b50cb16bcc1
Fixed
287b4f085d2ca3375cf1ee672af27410c64777e8
Fixed
2252c539c43f9a1431a7e8b34e3c18e9dd77a96d
Fixed
3902205eadf35db59dbc2186c2a98b9e6182efa5
Fixed
3d828519bd69bfcaabdd942a872679617ef06739
Fixed
7d6bc28cfe5c8e3a279b4b4bdeed6698b2702685
Fixed
7851263998d4269125fd6cb3fdbfc7c6db853859

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38190.json"