# CVE-2026-22977: net: sock: fix hardened usercopy panic in sock\_recv\_errqueue

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.21% (percentile 6, 2026-11-26)
- **CWE:** CWE-476, CWE-400
- **Published:** 2026-01-21T13:08:54.858Z
- **Modified:** 2026-11-10T13:18:31.130Z

## Who should check

- Anyone running Linux \>= 6d07d1cd300f4c7e16005f881fea388164999cc8, \< 88dd6be7ebb3153b662c2cebcb06e032a92857f5; \>= 6d07d1cd300f4c7e16005f881fea388164999cc8, \< c655d2167bf014d4c61b4faeca59b60ff9b9f6b1; \>= 6d07d1cd300f4c7e16005f881fea388164999cc8, \< 8c6901aa29626e35045130bac09b75f791acca85; \>= 6d07d1cd300f4c7e16005f881fea388164999cc8, \< 582a5e922a9652fcbb7d0165c95d5b20aa37575d; \>= 6d07d1cd300f4c7e16005f881fea388164999cc8, \< 005671c60fcf1dbdb8bddf12a62568fd5e4ec391; \>= 6d07d1cd300f4c7e16005f881fea388164999cc8, \< e00b169eaac5f7cdbf710c354c8fa76d02009115; \>= 6d07d1cd300f4c7e16005f881fea388164999cc8, \< 2a71a1a8d0ed718b1c7a9ac61f07e5755c47ae20
- Anyone running Linux 4.16

## Description

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

net: sock: fix hardened usercopy panic in sock\_recv\_errqueue

skbuff\_fclone\_cache was created without defining a usercopy region,
\[1\] unlike skbuff\_head\_cache which properly whitelists the cb\[\] field.
\[2\] This causes a usercopy BUG() when CONFIG\_HARDENED\_USERCOPY is
enabled and the kernel attempts to copy sk\_buff.cb data to userspace
via sock\_recv\_errqueue() -\> put\_cmsg().

The crash occurs when: 1. TCP allocates an skb using alloc\_skb\_fclone()
   (from skbuff\_fclone\_cache) \[1\]
2. The skb is cloned via skb\_clone() using the pre-allocated fclone
\[3\] 3. The cloned skb is queued to sk\_error\_queue for timestamp
reporting 4. Userspace reads the error queue via recvmsg(MSG\_ERRQUEUE)
5. sock\_recv\_errqueue() calls put\_cmsg() to copy serr-\>ee from skb-\>cb
\[4\] 6. \_\_check\_heap\_object() fails because skbuff\_fclone\_cache has no
   usercopy whitelist \[5\]

When cloned skbs allocated from skbuff\_fclone\_cache are used in the
socket error queue, accessing the sock\_exterr\_skb structure in skb-\>cb
via put\_cmsg() triggers a usercopy hardening violation:

\[    5.379589\] usercopy: Kernel memory exposure attempt detected from SLUB object 'skbuff\_fclone\_cache' (offset 296, size 16)!
\[    5.382796\] kernel BUG at mm/usercopy.c:102!
\[    5.383923\] Oops: invalid opcode: 0000 \[\#1\] SMP KASAN NOPTI
\[    5.384903\] CPU: 1 UID: 0 PID: 138 Comm: poc\_put\_cmsg Not tainted 6.12.57 \#7
\[    5.384903\] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
\[    5.384903\] RIP: 0010:usercopy\_abort+0x6c/0x80
\[    5.384903\] Code: 1a 86 51 48 c7 c2 40 15 1a 86 41 52 48 c7 c7 c0 15 1a 86 48 0f 45 d6 48 c7 c6 80 15 1a 86 48 89 c1 49 0f 45 f3 e8 84 27 88 ff \<0f\> 0b 490
\[    5.384903\] RSP: 0018:ffffc900006f77a8 EFLAGS: 00010246
\[    5.384903\] RAX: 000000000000006f RBX: ffff88800f0ad2a8 RCX: 1ffffffff0f72e74
\[    5.384903\] RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffffff87b973a0
\[    5.384903\] RBP: 0000000000000010 R08: 0000000000000000 R09: fffffbfff0f72e74
\[    5.384903\] R10: 0000000000000003 R11: 79706f6372657375 R12: 0000000000000001
\[    5.384903\] R13: ffff88800f0ad2b8 R14: ffffea00003c2b40 R15: ffffea00003c2b00
\[    5.384903\] FS:  0000000011bc4380(0000) GS:ffff8880bf100000(0000) knlGS:0000000000000000
\[    5.384903\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[    5.384903\] CR2: 000056aa3b8e5fe4 CR3: 000000000ea26004 CR4: 0000000000770ef0
\[    5.384903\] PKRU: 55555554
\[    5.384903\] Call Trace:
\[    5.384903\]  \<TASK\>
\[    5.384903\]  \_\_check\_heap\_object+0x9a/0xd0
\[    5.384903\]  \_\_check\_object\_size+0x46c/0x690
\[    5.384903\]  put\_cmsg+0x129/0x5e0
\[    5.384903\]  sock\_recv\_errqueue+0x22f/0x380
\[    5.384903\]  tls\_sw\_recvmsg+0x7ed/0x1960
\[    5.384903\]  ? srso\_alias\_return\_thunk+0x5/0xfbef5
\[    5.384903\]  ? schedule+0x6d/0x270
\[    5.384903\]  ? srso\_alias\_return\_thunk+0x5/0xfbef5
\[    5.384903\]  ? mutex\_unlock+0x81/0xd0
\[    5.384903\]  ? \_\_pfx\_mutex\_unlock+0x10/0x10
\[    5.384903\]  ? \_\_pfx\_tls\_sw\_recvmsg+0x10/0x10
\[    5.384903\]  ? \_raw\_spin\_lock\_irqsave+0x8f/0xf0
\[    5.384903\]  ? \_raw\_read\_unlock\_irqrestore+0x20/0x40
\[    5.384903\]  ? srso\_alias\_return\_thunk+0x5/0xfbef5

The crash offset 296 corresponds to skb2-\>cb within skbuff\_fclones:
  - sizeof(struct sk\_buff) = 232 - offsetof(struct sk\_buff, cb) = 40 -
  offset of skb2.cb in fclones = 232 + 40 = 272 - crash offset 296 =
  272 + 24 (inside sock\_exterr\_skb.ee)

This patch uses a local stack variable as a bounce buffer to avoid the hardened usercopy check failure.

\[1\] https://elixir.bootlin.com/linux/v6.12.62/source/net/ipv4/tcp.c\#L885
\[2\] https://elixir.bootlin.com/linux/v6.12.62/source/net/core/skbuff.c\#L5104
\[3\] https://elixir.bootlin.com/linux/v6.12.62/source/net/core/skbuff.c\#L5566
\[4\] https://elixir.bootlin.com/linux/v6.12.62/source/net/core/skbuff.c\#L5491
\[5\] https://elixir.bootlin.com/linux/v6.12.62/source/mm/slub.c\#L5719

## Affected and fixed versions

- Linux: \>= 6d07d1cd300f4c7e16005f881fea388164999cc8, \< 88dd6be7ebb3153b662c2cebcb06e032a92857f5; \>= 6d07d1cd300f4c7e16005f881fea388164999cc8, \< c655d2167bf014d4c61b4faeca59b60ff9b9f6b1; \>= 6d07d1cd300f4c7e16005f881fea388164999cc8, \< 8c6901aa29626e35045130bac09b75f791acca85; \>= 6d07d1cd300f4c7e16005f881fea388164999cc8, \< 582a5e922a9652fcbb7d0165c95d5b20aa37575d; \>= 6d07d1cd300f4c7e16005f881fea388164999cc8, \< 005671c60fcf1dbdb8bddf12a62568fd5e4ec391; \>= 6d07d1cd300f4c7e16005f881fea388164999cc8, \< e00b169eaac5f7cdbf710c354c8fa76d02009115; \>= 6d07d1cd300f4c7e16005f881fea388164999cc8, \< 2a71a1a8d0ed718b1c7a9ac61f07e5755c47ae20 (cvelist)
- Linux: 4.16 (cvelist)

## Mitigation

- Upgrade Linux to 2a71a1a8d0ed718b1c7a9ac61f07e5755c47ae20 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-22977. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-22977.md
Affected: Linux >= 6d07d1cd300f4c7e16005f881fea388164999cc8, < 88dd6be7ebb3153b662c2cebcb06e032a92857f5; >= 6d07d1cd300f4c7e16005f881fea388164999cc8, < c655d2167bf014d4c61b4faeca59b60ff9b9f6b1; >= 6d07d1cd300f4c7e16005f881fea388164999cc8, < 8c6901aa29626e35045130bac09b75f791acca85; >= 6d07d1cd300f4c7e16005f8…
Fixed in: Linux 88dd6be7ebb3153b662c2cebcb06e032a92857f5, Linux 8c6901aa29626e35045130bac09b75f791acca85, Linux 582a5e922a9652fcbb7d0165c95d5b20aa37575d, Linux 005671c60fcf1dbdb8bddf12a62568fd5e4ec391, Linux 2a71a1a8d0ed718b1c7a9ac61f07e5755c47ae20

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-22977 being exploited?

There is no confirmed exploitation: CVE-2026-22977 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-22977?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-22977?

Linux \>= 6d07d1cd300f4c7e16005f881fea388164999cc8, \< 88dd6be7ebb3153b662c2cebcb06e032a92857f5; \>= 6d07d1cd300f4c7e16005f881fea388164999cc8, \< c655d2167bf014d4c61b4faeca59b60ff9b9f6b1; \>= 6d07d1cd300f4c7e16005f881fea388164999cc8, \< 8c6901aa29626e35045130bac09b75f791acca85; \>= 6d07d1cd300f4c7e16005f881fea388164999cc8, \< 582a5e922a9652fcbb7d0165c95d5b20aa37575d; \>= 6d07d1cd300f4c7e16005f881fea388164999cc8, \< 005671c60fcf1dbdb8bddf12a62568fd5e4ec391; \>= 6d07d1cd300f4c7e16005f881fea388164999cc8, \< e00b169eaac5f7cdbf710c354c8fa76d02009115; \>= 6d07d1cd300f4c7e16005f881fea388164999cc8, \< 2a71a1a8d0ed718b1c7a9ac61f07e5755c47ae20; Linux 4.16.

### Is there a fix for CVE-2026-22977?

Yes. Fixed in Linux 88dd6be7ebb3153b662c2cebcb06e032a92857f5, Linux 8c6901aa29626e35045130bac09b75f791acca85, Linux 582a5e922a9652fcbb7d0165c95d5b20aa37575d, Linux 005671c60fcf1dbdb8bddf12a62568fd5e4ec391, Linux 2a71a1a8d0ed718b1c7a9ac61f07e5755c47ae20. Upgrade Linux to 2a71a1a8d0ed718b1c7a9ac61f07e5755c47ae20 or later.

### How do I check if I'm affected by CVE-2026-22977?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/88dd6be7ebb3153b662c2cebcb06e032a92857f5>
- patch: <https://git.kernel.org/stable/c/c655d2167bf014d4c61b4faeca59b60ff9b9f6b1>
- patch: <https://git.kernel.org/stable/c/8c6901aa29626e35045130bac09b75f791acca85>
- patch: <https://git.kernel.org/stable/c/582a5e922a9652fcbb7d0165c95d5b20aa37575d>
- patch: <https://git.kernel.org/stable/c/005671c60fcf1dbdb8bddf12a62568fd5e4ec391>
- patch: <https://git.kernel.org/stable/c/e00b169eaac5f7cdbf710c354c8fa76d02009115>
- patch: <https://git.kernel.org/stable/c/2a71a1a8d0ed718b1c7a9ac61f07e5755c47ae20>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-253495.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-22977>

HTML: <https://flawdb.com/CVE-2026-22977> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-22977>
