Heat the oven to 350 degrees F. Grease and flour a 15x10-inch jelly roll pan, or line it with parchment paper. Mash the ripe bananas in a medium bowl with a fork until mostly smooth and measure out 1 3/4 cups.
Beat the softened butter and granulated sugar together in a large bowl with an electric mixer until creamy and pale, about 2 minutes. Add the eggs one at a time, beating well after each one, then beat in the sour cream and vanilla.
Beat in the mashed bananas until just combined. Whisk together the flour, baking soda, and salt in a separate bowl. Add the dry ingredients to the wet ingredients and mix on low speed for about 1 minute, just until no dry flour shows. Stir in the walnuts if using.
Spread the batter evenly into the prepared pan. Bake for 25 to 27 minutes, until the top is golden and a toothpick inserted into the center comes out clean or with a few moist crumbs. Place the pan on a wire rack to cool.
While the bars cool, melt the frosting butter in a large saucepan over medium heat until it turns amber with brown flecks and smells nutty, 3 to 5 minutes. Take it off the heat at once. Whisk in the powdered sugar, milk, vanilla, and salt until smooth. Spread the warm frosting over the warm bars.
Let the frosted bars cool completely in the pan, about 1 hour, so the frosting sets. Lift them out by the parchment overhang if you used it, cut into 24 bars, and serve.