# CVE-2024-46771: can: bcm: Remove proc entry when dev is unregistered.

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.34% (percentile 20, 2026-11-26)
- **Published:** 2024-09-18T07:12:29.363Z
- **Modified:** 2026-08-05T11:38:28.890Z

## Who should check

- Anyone running Linux \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< 5c680022c4e28ba18ea500f3e29f0428271afa92; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< 33ed4ba73caae39f34ab874ba79138badc2c65dd; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< aec92dbebdbec7567d9f56d7c9296a572b8fd849; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< 10bfacbd5e8d821011d857bee73310457c9c989a; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< 3b39dc2901aa7a679a5ca981a3de9f8d5658afe8; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< 4377b79323df62eb5d310354f19b4d130ff58d50; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< abb0a615569ec008e8a93d9f3ab2d5b418ea94d4; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< 76fe372ccb81b0c89b6cd2fec26e2f38c958be85
- Anyone running Linux 2.6.25

## Description

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

can: bcm: Remove proc entry when dev is unregistered.

syzkaller reported a warning in bcm\_connect() below. \[0\]

The repro calls connect() to vxcan1, removes vxcan1, and calls
connect() with ifindex == 0.

Calling connect() for a BCM socket allocates a proc entry.
Then, bcm\_sk(sk)-\>bound is set to 1 to prevent further connect().

However, removing the bound device resets bcm\_sk(sk)-\>bound to 0
in bcm\_notify().

The 2nd connect() tries to allocate a proc entry with the same
name and sets NULL to bcm\_sk(sk)-\>bcm\_proc\_read, leaking the
original proc entry.

Since the proc entry is available only for connect()ed sockets,
let's clean up the entry when the bound netdev is unregistered.

\[0\]:
proc\_dir\_entry 'can-bcm/2456' already registered
WARNING: CPU: 1 PID: 394 at fs/proc/generic.c:376 proc\_register+0x645/0x8f0 fs/proc/generic.c:375
Modules linked in:
CPU: 1 PID: 394 Comm: syz-executor403 Not tainted 6.10.0-rc7-g852e42cc2dd4
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
RIP: 0010:proc\_register+0x645/0x8f0 fs/proc/generic.c:375
Code: 00 00 00 00 00 48 85 ed 0f 85 97 02 00 00 4d 85 f6 0f 85 9f 02 00 00 48 c7 c7 9b cb cf 87 48 89 de 4c 89 fa e8 1c 6f eb fe 90 \<0f\> 0b 90 90 48 c7 c7 98 37 99 89 e8 cb 7e 22 05 bb 00 00 00 10 48
RSP: 0018:ffa0000000cd7c30 EFLAGS: 00010246
RAX: 9e129be1950f0200 RBX: ff1100011b51582c RCX: ff1100011857cd80
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000002
RBP: 0000000000000000 R08: ffd400000000000f R09: ff1100013e78cac0
R10: ffac800000cd7980 R11: ff1100013e12b1f0 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: ff1100011a99a2ec
FS:  00007fbd7086f740(0000) GS:ff1100013fd00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200071c0 CR3: 0000000118556004 CR4: 0000000000771ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe07f0 DR7: 0000000000000400
PKRU: 55555554
Call Trace:
 \<TASK\>
 proc\_create\_net\_single+0x144/0x210 fs/proc/proc\_net.c:220
 bcm\_connect+0x472/0x840 net/can/bcm.c:1673
 \_\_sys\_connect\_file net/socket.c:2049 \[inline\]
 \_\_sys\_connect+0x5d2/0x690 net/socket.c:2066
 \_\_do\_sys\_connect net/socket.c:2076 \[inline\]
 \_\_se\_sys\_connect net/socket.c:2073 \[inline\]
 \_\_x64\_sys\_connect+0x8f/0x100 net/socket.c:2073
 do\_syscall\_x64 arch/x86/entry/common.c:52 \[inline\]
 do\_syscall\_64+0xd9/0x1c0 arch/x86/entry/common.c:83
 entry\_SYSCALL\_64\_after\_hwframe+0x4b/0x53
RIP: 0033:0x7fbd708b0e5d
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 \<48\> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 73 9f 1b 00 f7 d8 64 89 01 48
RSP: 002b:00007fff8cd33f08 EFLAGS: 00000246 ORIG\_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fbd708b0e5d
RDX: 0000000000000010 RSI: 0000000020000040 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000040 R09: 0000000000000040
R10: 0000000000000040 R11: 0000000000000246 R12: 00007fff8cd34098
R13: 0000000000401280 R14: 0000000000406de8 R15: 00007fbd70ab9000
 \</TASK\>
remove\_proc\_entry: removing non-empty directory 'net/can-bcm', leaking at least '2456'

## Affected and fixed versions

- Linux: \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< 5c680022c4e28ba18ea500f3e29f0428271afa92; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< 33ed4ba73caae39f34ab874ba79138badc2c65dd; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< aec92dbebdbec7567d9f56d7c9296a572b8fd849; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< 10bfacbd5e8d821011d857bee73310457c9c989a; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< 3b39dc2901aa7a679a5ca981a3de9f8d5658afe8; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< 4377b79323df62eb5d310354f19b4d130ff58d50; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< abb0a615569ec008e8a93d9f3ab2d5b418ea94d4; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< 76fe372ccb81b0c89b6cd2fec26e2f38c958be85 (cvelist)
- Linux: 2.6.25 (cvelist)

## Mitigation

- Upgrade Linux to 76fe372ccb81b0c89b6cd2fec26e2f38c958be85 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-46771.md
Affected: Linux >= ffd980f976e7fd666c2e61bf8ab35107efd11828, < 5c680022c4e28ba18ea500f3e29f0428271afa92; >= ffd980f976e7fd666c2e61bf8ab35107efd11828, < 33ed4ba73caae39f34ab874ba79138badc2c65dd; >= ffd980f976e7fd666c2e61bf8ab35107efd11828, < aec92dbebdbec7567d9f56d7c9296a572b8fd849; >= ffd980f976e7fd666c2e61b…
Fixed in: Linux 5c680022c4e28ba18ea500f3e29f0428271afa92, Linux 33ed4ba73caae39f34ab874ba79138badc2c65dd, Linux 10bfacbd5e8d821011d857bee73310457c9c989a, Linux 3b39dc2901aa7a679a5ca981a3de9f8d5658afe8, Linux 4377b79323df62eb5d310354f19b4d130ff58d50, Linux 76fe372ccb81b0c89b6cd2fec26e2f38c958be85

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-2024-46771 being exploited?

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

### How serious is CVE-2024-46771?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-46771?

Linux \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< 5c680022c4e28ba18ea500f3e29f0428271afa92; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< 33ed4ba73caae39f34ab874ba79138badc2c65dd; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< aec92dbebdbec7567d9f56d7c9296a572b8fd849; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< 10bfacbd5e8d821011d857bee73310457c9c989a; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< 3b39dc2901aa7a679a5ca981a3de9f8d5658afe8; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< 4377b79323df62eb5d310354f19b4d130ff58d50; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< abb0a615569ec008e8a93d9f3ab2d5b418ea94d4; \>= ffd980f976e7fd666c2e61bf8ab35107efd11828, \< 76fe372ccb81b0c89b6cd2fec26e2f38c958be85; Linux 2.6.25.

### Is there a fix for CVE-2024-46771?

Yes. Fixed in Linux 5c680022c4e28ba18ea500f3e29f0428271afa92, Linux 33ed4ba73caae39f34ab874ba79138badc2c65dd, Linux 10bfacbd5e8d821011d857bee73310457c9c989a, Linux 3b39dc2901aa7a679a5ca981a3de9f8d5658afe8, Linux 4377b79323df62eb5d310354f19b4d130ff58d50, Linux 76fe372ccb81b0c89b6cd2fec26e2f38c958be85. Upgrade Linux to 76fe372ccb81b0c89b6cd2fec26e2f38c958be85 or later.

### How do I check if I'm affected by CVE-2024-46771?

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/5c680022c4e28ba18ea500f3e29f0428271afa92>
- patch: <https://git.kernel.org/stable/c/33ed4ba73caae39f34ab874ba79138badc2c65dd>
- patch: <https://git.kernel.org/stable/c/aec92dbebdbec7567d9f56d7c9296a572b8fd849>
- patch: <https://git.kernel.org/stable/c/10bfacbd5e8d821011d857bee73310457c9c989a>
- patch: <https://git.kernel.org/stable/c/3b39dc2901aa7a679a5ca981a3de9f8d5658afe8>
- patch: <https://git.kernel.org/stable/c/4377b79323df62eb5d310354f19b4d130ff58d50>
- patch: <https://git.kernel.org/stable/c/abb0a615569ec008e8a93d9f3ab2d5b418ea94d4>
- patch: <https://git.kernel.org/stable/c/76fe372ccb81b0c89b6cd2fec26e2f38c958be85>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/10/msg00003.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-2024-46771>

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