brush against (someone or something)
To pass by and lightly touch someone or something. Be sure not to brush against this wall while the paint is still drying. Did you see the beautiful woman who just brushed against me?
brush (up) against someone or something
to touch someone or something lightly in passing. I brushed up against the freshly painted wall as I passed. I guess I brushed against Walter as I walked by.