Skip to content

[Bug]: EfiSystemTable accessors for boot and runtime services tables allow unchecked creation of mutable aliases #1200

@joschock

Description

@joschock

Is there an existing issue for this?

  • I have searched existing issues

Current Behavior

The present implementation of the boot_services and boot_services_mut functions (and the corresponding runtime functions) in EfiSystemTable allow safe creation of mutable and unmutable aliases to the underlying tables.

Expected Behavior

It shouldn't be possible to create mut + const references to the same data by calling only safe functions.

Steps To Reproduce

By inspection.

Build Environment

N/A

Version Information

Commit: 93b22d5dfbfd395dfae643ad3a147699e7982a2b

Urgency

Low

Are you going to fix this?

I will fix it

Do you need maintainer feedback?

No maintainer feedback needed

Anything else?

No response

Metadata

Metadata

Assignees

Labels

state:needs-triageNeeds to triaged to determine next stepstype:bugSomething isn't workingurgency:lowLittle to no impact

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions