CVE-2026-63988

Source
https://cve.org/CVERecord?id=CVE-2026-63988
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-63988.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-63988
Downstream
Published
2026-07-19T14:56:09.677Z
Modified
2026-07-21T03:47:42.713207867Z
Summary
bridge: Fix sleep in atomic context in sysfs path
Details

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

bridge: Fix sleep in atomic context in sysfs path

Since the start of the git history, brport_store() always acquired the bridge lock. Back then this decision made sense: The bridge lock protects the STP state of the bridge and its ports and at that time the function was only used by two STP related attributes (cost and priority).

Nowadays, brport_store() processes a lot more attributes and most of them do not need the bridge lock:

  • Bridge flags: Only require RTNL. Read locklessly by the data path. Annotations can be added in net-next.

  • FDB port flushing: Only requires the FDB lock.

  • Multicast attributes: Only require the multicast lock.

  • Group forward mask: Only requires RTNL. Read locklessly by the data path. Annotations can be added in net-next.

  • Backup port: Only requires RTNL. Read locklessly by the data path.

This is a problem as the bridge calls devsetpromiscuity() when certain bridge port flags change and this function can sleep since the commit cited below, resulting in a splat such as [1].

Fix this by reducing the scope of the bridge lock and only take it when processing the two STP related attributes that require it. Remove the now stale comment from brswitchdevsetportflag(). The SWITCHDEVFDEFER flag can be removed in net-next.

[1] BUG: sleeping function called from invalid context at net/core/devaddrlists.c:1262 inatomic(): 1, irqsdisabled(): 0, nonblock: 0, pid: 372, name: bash preemptcount: 201, expected: 0 RCU nest depth: 0, expected: 0 5 locks held by bash/372:

0: ffff88810c51c3f0 (sbwriters#7){.+.+}-{0:0}, at: ksyswrite (fs/read_write.c:740)

1: ffff888115ce9480 (&of->mutex){+.+.}-{4:4}, at: kernfsfopwrite_iter (fs/kernfs/file.c:343)

2: ffff88810b9fd330 (kn->active#37){.+.+}-{0:0}, at: kernfsfopwrite_iter (fs/kernfs/file.c:80 fs/kernfs/file.c:344)

3: ffffffffa59473a0 (rtnlmutex){+.+.}-{4:4}, at: brportstore (net/bridge/brsysfsif.c:326)

4: ffff8881099d2d58 (&br->lock){+...}-{3:3}, at: brportstore (./include/linux/spinlock.h:348 net/bridge/brsysfs_if.c:345)

Preemption disabled at: 0x0 Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 Call Trace: <TASK> dumpstacklvl (lib/dumpstack.c:94 lib/dumpstack.c:120) __mightresched.cold (kernel/sched/core.c:9163) netifrxmoderun (net/core/devaddrlists.c:1262) netifrxmodesync (net/core/devaddrlists.c:1428) devsetpromiscuity (net/core/devapi.c:289) brmanagepromisc (net/bridge/brif.c:135 net/bridge/brif.c:172) brportflagschange (net/bridge/brif.c:242 net/bridge/brif.c:747) storelearning (net/bridge/brsysfsif.c:79 net/bridge/brsysfsif.c:235) brportstore (net/bridge/brsysfsif.c:346) kernfsfopwriteiter (fs/kernfs/file.c:352) newsyncwrite (fs/readwrite.c:595) vfswrite (fs/readwrite.c:688) ksyswrite (fs/readwrite.c:740) dosyscall64 (arch/x86/entry/syscall64.c:63 arch/x86/entry/syscall64.c:94) entrySYSCALL64afterhwframe (arch/x86/entry/entry64.S:121)

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63988.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
78cd408356fe3edbac66598772fd347bf3e32c1f
Fixed
e976e3f2f2005c6267089a1a3b6344f234a59a55
Fixed
2f9cb30d97e45686f3119fff3b30f12259950910
Fixed
6d34594cc619d0d4b07d5afcad8b5984f3526dcf

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.15.0
Fixed
6.18.35
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.0.12

Database specific

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